-
Notifications
You must be signed in to change notification settings - Fork 253
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
chore(*): Publish packages with npm provenance #1891
Changes from 10 commits
b6c514a
3ed134e
37759bd
f3c0ae5
c0e8424
3545ced
dc77f55
e4f2b4b
92256b2
9ff9834
b0c9fe5
6ff1e40
38e192f
1a66fb1
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
'gatsby-plugin-clerk': patch | ||
'@clerk/chrome-extension': patch | ||
'@clerk/localizations': patch | ||
'@clerk/clerk-js': patch | ||
'@clerk/clerk-sdk-node': patch | ||
'@clerk/backend': patch | ||
'@clerk/fastify': patch | ||
'@clerk/nextjs': patch | ||
'@clerk/shared': patch | ||
'@clerk/themes': patch | ||
'@clerk/clerk-react': patch | ||
'@clerk/remix': patch | ||
'@clerk/types': patch | ||
'@clerk/clerk-expo': patch | ||
--- | ||
|
||
Publish packages with [npm provenance](https://docs.npmjs.com/generating-provenance-statements) enabled |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,11 @@ jobs: | |
name: Release | ||
if: ${{ github.repository == 'clerkinc/javascript' }} | ||
runs-on: ${{ vars.RUNNER_LARGE }} | ||
env: | ||
NPM_CONFIG_PROVENANCE: true | ||
permissions: | ||
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. |
||
contents: read | ||
id-token: write | ||
steps: | ||
- name: Echo github context | ||
run: echo "$GITHUB_CONTEXT" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,6 @@ module.exports = { | |
'subject-case': [2, 'always', ['sentence-case']], | ||
'body-max-line-length': [1, 'always', '150'], | ||
'scope-empty': [2, 'never'], | ||
'scope-enum': [2, 'always', [...getPackageNames(), 'repo', 'release']], | ||
'scope-enum': [2, 'always', [...getPackageNames(), 'repo', 'release', '*']], | ||
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. If you want to write a commit message that affects everything inside 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. This was missing, indeed! Great job! |
||
}, | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 We might be able to add
provenance=true
to the root.npmrc
file in the repo, instead of needing to add the environment variable to each release workflow.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried that in
b6c514a
(#1891) but Verdaccio didn't like that: https://github.com/clerkinc/javascript/actions/runs/6533197979/job/17737954907?pr=1891There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LekoArts It looks like that error might have been because the
id-token
permission wasn't set yet 👀There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried that in
3545ced
(#1891), that didn't make a difference