Skip to content

Commit

Permalink
ci: release.yml workflow npm job releasing core lib to npm has --prov…
Browse files Browse the repository at this point in the history
…enance (#47)

Motivation:
* @olizilla suggestion
#46 (comment)
  • Loading branch information
gobengo authored Mar 26, 2024
1 parent c9b1176 commit a445aa7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ jobs:
needs: release
if: contains(fromJson(needs.release.outputs.paths_released), 'packages/core') || inputs.force_release_core
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v3
- uses: pnpm/[email protected]
Expand All @@ -45,7 +49,7 @@ jobs:
cache: 'npm'
- run: npm ci
- run: npm run build --workspace=packages/core
- run: npm publish --access=public --workspace=packages/core
- run: npm publish --access=public --workspace=packages/core --provenance
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
npm-cli:
Expand Down

0 comments on commit a445aa7

Please sign in to comment.