Skip to content

Commit

Permalink
ci: Publish to npm with provenance
Browse files Browse the repository at this point in the history
  • Loading branch information
shrink committed Nov 30, 2024
1 parent 13fd222 commit 2df400d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

permissions:
contents: write
id-token: write

jobs:
upload-build-to-release:
Expand Down Expand Up @@ -36,6 +37,8 @@ jobs:
node-version: "18"
- run: npm ci
- run: npm run build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: "${{ secrets.NODE_AUTH_TOKEN }}"
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NODE_AUTH_TOKEN }}
access: public
provenance: true
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@handles-net/handles-server",
"version": "0.1.0-alpha3",
"version": "0.1.0",
"main": "dist/index.js",
"bin": "bin/index.js",
"license": "MIT",
Expand Down

0 comments on commit 2df400d

Please sign in to comment.