Skip to content

Commit

Permalink
fix(release-steps) - Using NX with tags instead of NPM and Lerna publish
Browse files Browse the repository at this point in the history
  • Loading branch information
lilla28 committed Apr 8, 2024
1 parent 7617423 commit 3f9cbd1
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,8 @@ jobs:
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 20.x
registry-url: https://registry.npmjs.org/
- run: |
lerna publish from-package --no-private --yes
npx nx release publish --dry-run --projects=tag:release # THIS IS DRY-RUN
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true
Expand Down
6 changes: 6 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
"dependsOn": ["^build"]
}
},
"release": {
"projectsRelationship": "independent",
"changelog": {
"projectChangelogs": true
}
},
"plugins": [
"@nx-dotnet/core"
]
Expand Down
1 change: 1 addition & 0 deletions src/messaging/js/composeui-messaging-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"private": false,
"description": "JavaScript client for ComposeUI's Message Router",
"type": "module",
"tags": ["release"],
"files": [
"dist/esm/**/*"
],
Expand Down
3 changes: 3 additions & 0 deletions src/messaging/js/composeui-messaging-client/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"tags": ["release"]
}
1 change: 1 addition & 0 deletions src/shell/js/composeui-node-launcher/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"type": "module",
"author": "Morgan Stanley",
"license": "Apache-2.0",
"sourceTag": "release",
"repository": {
"type": "git",
"url": "git+https://github.com/morganstanley/ComposeUI.git"
Expand Down
3 changes: 3 additions & 0 deletions src/shell/js/composeui-node-launcher/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"tags": ["release"]
}

0 comments on commit 3f9cbd1

Please sign in to comment.