Skip to content

Commit 4199887

Browse files
authored
attest NPM package as a whole (#282)
1 parent f74e26a commit 4199887

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/publish.yaml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,20 +61,21 @@ jobs:
6161
run: |
6262
rm -rf dist && yarn build
6363
64-
# ! Do NOT remove - this will cause a Sev 0 incident !
65-
- name: Generate SDK attestation
64+
# ! Do NOT remove - this will cause a Sev 0 incident !
65+
- name: Pack NPM package
66+
run: |
67+
npm pack
68+
69+
- name: Generate attestation
6670
uses: actions/attest-build-provenance@v1
6771
with:
68-
subject-path: |
69-
dist
70-
contracts
71-
README.md
72-
LICENSE.md
73-
package.json
74-
72+
subject-path: ./*.tgz
73+
# ! ------------------------------------------------- !
74+
7575
- name: Publish package
76-
uses: JS-DevTools/npm-publish@v1
76+
uses: JS-DevTools/npm-publish@19c28f1ef146469e409470805ea4279d47c3d35c # v3.1.1
7777
with:
7878
token: ${{ secrets.CONTRACTS_NPM_TOKEN }}
7979
access: public
8080
tag: "latest"
81+
provenance: true

0 commit comments

Comments
 (0)