Skip to content

Commit 2bdc2f0

Browse files
authored
Merge pull request #402 from sass/provenance
Pass --provenance to npm publish
2 parents 1be4281 + d2b8b99 commit 2bdc2f0

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,8 @@ jobs:
124124
working-directory: sass-spec
125125

126126
deploy_npm:
127-
name: Deploy npm
128-
runs-on: ubuntu-latest
129-
if: "github.ref_type == 'tag' && github.event.repository.fork == false"
130127
needs: [static_analysis, tests, sass_spec]
128+
if: "github.ref_type == 'tag' && github.event.repository.fork == false"
131129
permissions:
132130
attestations: write
133131
contents: write

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ jobs:
2828

2929
- name: Publish optional dependencies
3030
run: |
31-
find ./npm -mindepth 1 -maxdepth 1 -print0 | xargs -0 -n 1 -- sh -xc 'npx ts-node ./tool/prepare-optional-release.ts --package=$(basename $1) && npm publish $1' --
31+
find ./npm -mindepth 1 -maxdepth 1 -print0 | xargs -0 -n 1 -- sh -xc 'npx ts-node ./tool/prepare-optional-release.ts --package=$(basename $1) && npm publish --provenance $1' --
3232
33-
- run: npm publish
33+
- run: npm publish --provenance

0 commit comments

Comments
 (0)