Skip to content

Commit

Permalink
ci(github): Add Provenance Publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianWendelborn committed May 7, 2023
1 parent f0b9123 commit b8faa4f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:
run: yarn run build

- name: dry-publish
run: npm publish --dry-run
run: npm publish --provenance --dry-run
5 changes: 4 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ jobs:
build:
runs-on: ubuntu-latest

permissions:
id-token: write

steps:
- uses: actions/checkout@v3

Expand All @@ -24,6 +27,6 @@ jobs:

- run: yarn run build

- 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 @@ -34,5 +34,5 @@
"test": "vitest"
},
"types": "dist/index.d.ts",
"version": "0.0.4"
"version": "0.0.5"
}

0 comments on commit b8faa4f

Please sign in to comment.