-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: build packages with lerna (#4524)
* chore: add lerna * chore: update files, exports & main paths in package.json * chore: use independent versioning * chore: add build step in workflow.yml * chore: build before lint * chore: update run utils * chore: update copy path * chore: add build packages step in the test job * chore: use npm workspaces instead of lerna * chore: build workspace * chore: use lerna and add prebuild step * chore: copy into lib directory * chore: update import path in tests to point to lib instead of src * chore: update regex * chore: build workspaces before releasing and use npm install * chore: build workspaces in prelease workflow Co-authored-by: Lukas Holzer <[email protected]>
- Loading branch information
Showing
37 changed files
with
27,582 additions
and
10,523 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,8 @@ jobs: | |
run: git config --global user.name github-actions | ||
- name: Setup git email | ||
run: git config --global user.email [email protected] | ||
- name: Build workspaces | ||
run: npx lerna run build | ||
- name: Create fake .git in package subdirectory | ||
# See https://github.com/npm/cli/issues/2010,https://github.com/npm/npm/issues/9111 | ||
run: mkdir packages/${{ steps.extract.outputs.package }}/.git | ||
|
@@ -55,7 +57,7 @@ jobs: | |
- name: Push changes | ||
run: git push --follow-tags | ||
- name: Install dependencies | ||
run: npm ci | ||
run: npm install | ||
- run: npm publish packages/${{ steps.extract.outputs.package }}/ --tag=${{ steps.extract.outputs.tag }} | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"$schema": "node_modules/lerna/schemas/lerna-schema.json", | ||
"useNx": true, | ||
"useWorkspaces": true, | ||
"version": "independent" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"tasksRunnerOptions": { | ||
"default": { | ||
"runner": "nx/tasks-runners/default", | ||
"options": { | ||
"cacheableOperations": ["build", "test"] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.