Skip to content

Commit

Permalink
ci: enable npm provenance for dev publish (#830)
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub authored May 28, 2024
1 parent b3fcad2 commit a54c7ff
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/dev-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
checks: read
statuses: write
contents: write
packages: write
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -20,4 +26,4 @@ jobs:
AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }}
- run: |
npm version $(node --eval="process.stdout.write(require('./package.json').version)")-dev.$(git rev-parse --short HEAD) --no-git-tag-version
npm publish --no-git-tag-version --tag dev
npm publish --provenance --access=public --no-git-tag-version --tag dev

0 comments on commit a54c7ff

Please sign in to comment.