Skip to content

Commit

Permalink
ADD publish the npm package with the [provenance statements](https://…
Browse files Browse the repository at this point in the history
  • Loading branch information
pubkey committed May 20, 2024
1 parent 3388451 commit 2956777
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
# The type of runner that the job will run on
runs-on: ubuntu-22.04

permissions:
# @link https://docs.npmjs.com/generating-provenance-statements#about-npm-provenance
id-token: write
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
Expand Down Expand Up @@ -93,7 +96,7 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- run: npm publish
- run: npm publish --provenance --access public
if: steps.vars.outputs.prerelease == 'false'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# RxDB Changelog

<!-- CHANGELOG NEWEST -->
- ADD publish the npm package with the [provenance statements](https://docs.npmjs.com/generating-provenance-statements)

<!-- ADD new changes here! -->

Expand Down

0 comments on commit 2956777

Please sign in to comment.