Skip to content

Commit

Permalink
Add --force to pnpm publish to account for already published packages
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Oct 24, 2023
1 parent 2b6952e commit a1b4ed4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,15 @@ jobs:
#
# > It will skip the private packages, presumably?
# yes
#
# > --force
# Packages are proceeded to be published even if their current version is already in the
# registry.
#
# > --no-git-checks
# we publish from tags, and default behavior is to only allow publishing on main/master
- run: |
npm whoami --registry=https://registry.npmjs.org/
pnpm -r publish --access public --no-git-checks
pnpm -r publish --access public --no-git-checks --force
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit a1b4ed4

Please sign in to comment.