-
Notifications
You must be signed in to change notification settings - Fork 21
chore: Publishes to npm with provenance flag #456
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -74,12 +74,12 @@ jobs: | |
| - name: Restore build artifact permissions | ||
| run: cd dist && setfacl --restore=permissions-backup.acl | ||
| continue-on-error: true | ||
| - name: Release | ||
| - name: Publish to npm with provenance | ||
| env: | ||
| NPM_DIST_TAG: latest | ||
| NPM_REGISTRY: registry.npmjs.org | ||
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
| run: npx -p publib@latest publib-npm | ||
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
| run: | | ||
| cd dist/js | ||
| npm publish --provenance --access public --tag latest | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. have you been able to test it?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hard to actually test without doing the release, but this command should be equivalent to what was being done before + the provenance flag |
||
| - name: Extract Version | ||
| id: extract-version | ||
| if: ${{ failure() }} | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.