-
Notifications
You must be signed in to change notification settings - Fork 376
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
Update to yarn v2 #7468
base: main
Are you sure you want to change the base?
Update to yarn v2 #7468
Conversation
The Github runner comes with yarn 1.22.22 preinstalled: https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md
@@ -220,9 +220,8 @@ | |||
"yaml": "^1.10.0" | |||
}, | |||
"scripts": { | |||
"prepublish": "gulp post-npm-install", | |||
"prepack": "gulp post-npm-install", |
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.
Renamed to prepack according to my understanding of the big warning box in the documentation: https://yarnpkg.com/advanced/lifecycle-scripts#prepublish
"postpublish": "bash -c \"if [ -z \"$GITHUB_ACTION\" ]; then git tag -a ${npm_package_version} -m \"${npm_package_version}\" && git push origin ${npm_package_version}; fi \"", | ||
"postinstall": "gulp post-npm-install", |
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 think gulp post-npm-install
is always run after building, so removed the hook since the warning box in the documentation is quite strongly worded against this hook: https://yarnpkg.com/advanced/lifecycle-scripts#postinstall
0308d97
to
1478cd9
Compare
This mirrors the TerriaMap PR: TerriaJS/TerriaMap#728 Fixes TerriaJS#6453
1478cd9
to
e2eec9d
Compare
What this PR does
This mirrors the TerriaMap PR:
TerriaJS/TerriaMap#728
Fixes #6453
Test me
Not sure about the publish parts, I believe most other things are tested by CI.
Checklist
doc/
.