Skip to content

Commit

Permalink
workflows: include provenance statement while publishing on npm
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthvp committed Dec 28, 2024
1 parent 3540df1 commit f649851
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ on:
jobs:
publish-npm:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
- run: npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/wikimedia-gadgets/types-mediawiki.git"
"url": "https://github.com/wikimedia-gadgets/types-mediawiki"
},
"files": [
"mw",
Expand Down

0 comments on commit f649851

Please sign in to comment.