Skip to content

Commit 6e2dd14

Browse files
committed
ci: enable provenance statement generation
- express-rate-limit/express-rate-limit#406
1 parent 823e94e commit 6e2dd14

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/cicd.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ jobs:
108108
runs-on: ubuntu-latest
109109
needs: [ci-node,ci-db-linting,ci-db-testing]
110110
if: startsWith(github.ref, 'refs/tags/v')
111+
permissions:
112+
contents: write
113+
id-token: write
111114
steps:
112115
- name: Checkout the repository
113116
uses: actions/checkout@v3
@@ -118,7 +121,7 @@ jobs:
118121
- name: Install dependencies
119122
run: npm ci
120123
- name: Publish package to NPM
121-
run: npm publish --access=public
124+
run: npm publish --provenance --access=public
122125
env:
123126
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
124127
- name: Build package to upload to GitHub releases
@@ -131,4 +134,4 @@ jobs:
131134
files: acpr-rate-limit-postgresql.tgz
132135
body:
133136
You can view the changelog
134-
[here](https://github.com/adrianprelipcean/express-rate-limit-postgresql/blob/master/changelog.md).
137+
[here](https://github.com/adrianprelipcean/express-rate-limit-postgresql/blob/master/changelog.md).

0 commit comments

Comments
 (0)