Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #72 from shopware/enable-provenance
Browse files Browse the repository at this point in the history
Enable provenance
  • Loading branch information
jleifeld committed May 15, 2023
2 parents 1f45783 + fc25acb commit 8407c2a
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@ jobs:
publish:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 'lts/gallium'
- name: Retrieve the cached "node_modules" directory (if present)
uses: actions/cache@v2
uses: actions/cache@v3
id: node-cache
with:
path: node_modules
Expand All @@ -26,7 +29,8 @@ jobs:
run: npm run lint
- name: build
run: npm run build
- uses: JS-DevTools/npm-publish@v1
- uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_TOKEN }}
access: "public"
access: "public"
provenance: true

0 comments on commit 8407c2a

Please sign in to comment.