-
Notifications
You must be signed in to change notification settings - Fork 85
NPM Publish Workflow #1460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NPM Publish Workflow #1460
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,66 @@ | ||||||
| name: NPM Publish | ||||||
|
|
||||||
| on: | ||||||
| push: | ||||||
| tags: | ||||||
| - '*' | ||||||
|
|
||||||
| # Ensure only one publish runs at a time | ||||||
| concurrency: | ||||||
| group: npm-publish | ||||||
| cancel-in-progress: false | ||||||
|
|
||||||
| permissions: | ||||||
| contents: read | ||||||
|
|
||||||
|
Comment on lines
+20
to
+22
|
||||||
| jobs: | ||||||
| prebuild-x64: | ||||||
| uses: ./.github/workflows/prebuild-linux-x64.yml | ||||||
|
|
||||||
| prebuild-arm64: | ||||||
| uses: ./.github/workflows/prebuild-linux-arm64.yml | ||||||
|
|
||||||
|
Comment on lines
+20
to
+31
|
||||||
| publish: | ||||||
| needs: [prebuild-x64, prebuild-arm64] | ||||||
| # Only publish from the official repository, not forks | ||||||
| if: github.repository == 'RobotWebTools/rclnodejs' | ||||||
| runs-on: ubuntu-latest | ||||||
|
Comment on lines
+24
to
+34
|
||||||
| environment: npm-publish | ||||||
| permissions: | ||||||
| contents: read | ||||||
| id-token: write | ||||||
| steps: | ||||||
| - uses: actions/checkout@v5 | ||||||
|
||||||
| - uses: actions/checkout@v5 | |
| - uses: actions/checkout@v6 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,9 +2,7 @@ name: Prebuild Linux ARM64 | |
|
|
||
| on: | ||
| workflow_dispatch: | ||
| push: | ||
| tags: | ||
| - '*' | ||
| workflow_call: | ||
|
|
||
| jobs: | ||
| prebuild: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,9 +2,7 @@ name: Prebuild Linux x64 | |
|
|
||
| on: | ||
| workflow_dispatch: | ||
| push: | ||
| tags: | ||
| - '*' | ||
| workflow_call: | ||
|
|
||
| jobs: | ||
| prebuild: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR description says this workflow should also support manual
workflow_dispatchwith a dry-run option, but the workflow currently only triggers onpushtags and always runsnpm publish. Add aworkflow_dispatchtrigger with an input (e.g.,dry_run) and gate the publish step/job accordingly.