Skip to content

Commit

Permalink
test: publish with provenance
Browse files Browse the repository at this point in the history
  • Loading branch information
joostdelange committed Oct 3, 2023
1 parent 7a9fb16 commit bbff041
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@ name: Publish Package to npmjs
on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -28,7 +32,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
Expand All @@ -38,6 +42,6 @@ jobs:
run: pnpm build

- name: Publish new version
run: npm publish --no-git-checks
run: npm publish --provenance --access public --no-git-checks
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
@@ -1,6 +1,6 @@
{
"name": "@joostdelange/cli",
"version": "1.0.1",
"version": "1.0.2",
"repository": "github:joostdelange/cli",
"type": "module",
"bin": {
Expand Down

0 comments on commit bbff041

Please sign in to comment.