Skip to content

Commit fad0522

Browse files
authored
ci: use explicit dry-run input for npm publish (#322)
We now pass in an explicit `dry-run` parameter when calling `action-npm-publish`, rather than relying on it to infer whether it's a dry run or not from context. This ensures that if authentication is not setup correctly, CI will fail rather than silently suceeding with a dry run.
1 parent cab3c2e commit fad0522

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/publish-release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ jobs:
5555
- name: Dry Run Publish
5656
uses: MetaMask/action-npm-publish@v6
5757
with:
58+
dry-run: true
5859
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
5960
subteam: S042S7RE4AE # @metamask-npm-publishers
6061
env:
@@ -83,6 +84,7 @@ jobs:
8384
- name: Publish
8485
uses: MetaMask/action-npm-publish@v6
8586
with:
87+
dry-run: false
8688
# This `NPM_TOKEN` needs to be manually set to publish a package for
8789
# the first time only.
8890
# Look in the repository settings under "Environments", and set this

0 commit comments

Comments
 (0)