Skip to content

Commit a9487be

Browse files
authored
Update yarn publish command with --provenance flag (#13)
* Update yarn publish command with --provenance flag * Add provenance flag to publishConfig in package.json
1 parent 6ba7595 commit a9487be

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/workflows/ci-cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ jobs:
3232
VERSION=$(node -p "require('./package.json').version")-canary.$(date +%s)
3333
3434
yarn version --new-version $VERSION --no-git-tag-version
35-
yarn publish --tag canary
35+
yarn publish --tag canary --provenance
3636
env:
3737
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/stable-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
git push origin $VERSION
5353
5454
yarn version --new-version $VERSION
55-
yarn publish --tag latest
55+
yarn publish --tag latest --provenance
5656
env:
5757
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5858
- name: Create GitHub Release

library/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141
"dist"
4242
],
4343
"publishConfig": {
44-
"access": "public"
44+
"access": "public",
45+
"provenance": true
4546
},
4647
"scripts": {
4748
"playground": "bun ./playground.js",

0 commit comments

Comments
 (0)