Skip to content

Commit

Permalink
Update yarn publish command with --provenance flag (#13)
Browse files Browse the repository at this point in the history
* Update yarn publish command with --provenance flag

* Add provenance flag to publishConfig in package.json
  • Loading branch information
ImBIOS committed Dec 14, 2023
1 parent 6ba7595 commit a9487be
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ jobs:
VERSION=$(node -p "require('./package.json').version")-canary.$(date +%s)
yarn version --new-version $VERSION --no-git-tag-version
yarn publish --tag canary
yarn publish --tag canary --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/stable-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
git push origin $VERSION
yarn version --new-version $VERSION
yarn publish --tag latest
yarn publish --tag latest --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Create GitHub Release
Expand Down
3 changes: 2 additions & 1 deletion library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
"dist"
],
"publishConfig": {
"access": "public"
"access": "public",
"provenance": true
},
"scripts": {
"playground": "bun ./playground.js",
Expand Down

0 comments on commit a9487be

Please sign in to comment.