Skip to content

Commit

Permalink
ci: npm provenance
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-bodnar committed Jun 22, 2023
1 parent 7c784b9 commit b635b80
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18

- name: Install the latest version of the npm CLI
run: npm install -g npm@latest

- name: Build and install the package
run: |
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ jobs:
npm:
runs-on: ubuntu-latest
needs: assets
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v3

Expand All @@ -73,7 +76,10 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18

- name: Install the latest version of the npm CLI
run: npm install -g npm@latest

- name: Build and install the package
run: |
Expand All @@ -88,6 +94,7 @@ jobs:
- name: Publish the package
uses: JS-DevTools/npm-publish@v2
with:
provenance: true
token: ${{ secrets.NPM_TOKEN }}

aur:
Expand Down

0 comments on commit b635b80

Please sign in to comment.