-
Notifications
You must be signed in to change notification settings - Fork 135
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
ci: support provenance #1489
base: main
Are you sure you want to change the base?
ci: support provenance #1489
Conversation
@@ -151,7 +151,7 @@ | |||
"karma-sourcemap-loader": "^0.3.7", | |||
"karma-spec-reporter": "^0.0.31", | |||
"karma-webpack": "^5.0.0", | |||
"lerna": "^4.0.0", | |||
"lerna": "^6.6.2", |
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.
Hopefully this upgrade doesn't cause lots of headache 🚨 Sorry about that.
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.
Yep, I tried to use the oldest with support for provenance... and I don't know if we are ready to support this
Co-authored-by: Jan Calanog <[email protected]>
@@ -109,8 +113,14 @@ jobs: | |||
name: 'Prepare CDN release' | |||
run: echo "versions=$(npm run --silent ci:prepare-release)" >> ${GITHUB_OUTPUT} | |||
|
|||
- name: generate build provenance | |||
if: ${{ always() && hashFiles('packages/rum/dist/bundles/*.js') |
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.
Sorry, there were missing }}
in the suggestion.
if: ${{ always() && hashFiles('packages/rum/dist/bundles/*.js') | |
if: ${{ always() && hashFiles('packages/rum/dist/bundles/*.js') }} |
What does this pull request do?
dry-run=true
packages/rum/dist/bundles/*.js
Provenance is fully supported with GH actions and NPM, see https://docs.npmjs.com/generating-provenance-statements#publishing-packages-with-provenance-via-github-actions
Further details
See lerna/lerna#3657
Lerna breaking changes for 5 in https://github.com/lerna/lerna/blob/main/CHANGELOG.md#500-2022-05-24 and for 6 in https://github.com/lerna/lerna/blob/main/CHANGELOG.md#600-2022-10-12
Related issues
Closes #ISSUE
Test
See this build but it's not doing much since no changes are found in lerna :/