-
Notifications
You must be signed in to change notification settings - Fork 334
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 release scripts #553
Conversation
d893c6f
to
076224f
Compare
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.
Does the publishing documentation need to change based on this?
package.json
Outdated
@@ -17,9 +17,11 @@ | |||
"preinstall": "node bin/check-nvmrc.js", | |||
"prestart": "node bin/check-nvmrc.js", | |||
"start": "gulp dev --destination 'public'", | |||
"pre:release": "node bin/check-nvmrc.js && ./bin/pre-release.sh", |
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.
nit: prerelease (consistent with npm above)
bin/release.sh
Outdated
# ! npm team ls developers | grep -q $NPM_USER | ||
|
||
NPM_USER=$(npm whoami) | ||
if ! [[ "govuk-patterns-and-tools" = $NPM_USER ]]; then |
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.
👏
bin/release.sh
Outdated
git push --tags | ||
echo "🗒 Tag $TAG created and push to remote." | ||
|
||
echo "🗒 Creating a relase artifact..." |
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.
nit: relase -> release
076224f
to
bccabfd
Compare
bccabfd
to
e7c1fbc
Compare
yes it will, but didn't want to update docs just yet, if we change things |
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.
💯 looks great to me! great work @igloosi.
Left two minor comments, but nothing important.
Later edit: oh.. seems like I haven't saved the comments. will add again.
Shall we do a publish with it, or what's the best way to test it so we can then merge it?
bin/pre-release.sh
Outdated
TAG="v$ALL_PACKAGE_VERSION" | ||
|
||
npm run build:packages && npm run build:dist && lerna publish --skip-git --skip-npm && git add . && git commit -m "Release $TAG" | ||
echo "🗒 All done. Ready to create a pull request. Once approved, run npm run release" |
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.
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.
ok, let's have chat how to best deal with it
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.
@alex-ju have pushed an update to prerelease script. how about now?
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.
if you cancel lerna publish, exit code is 0
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, looks good now.
8e1ebf8
to
2643b17
Compare
2643b17
to
4773de0
Compare
4773de0
to
7815105
Compare
4b8692e
to
978f828
Compare
978f828
to
a3117a3
Compare
a3117a3
to
f5854d3
Compare
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.
Reviewed in person and again after update.
Publish only from master is a great addition.
this also needs update release documentation and changelog |
f5854d3
to
8b28462
Compare
57939b8
to
691d9c1
Compare
691d9c1
to
27b6fe5
Compare
27b6fe5
to
713c865
Compare
713c865
to
0de18e9
Compare
6c644ae
to
f160842
Compare
f160842
to
a847f72
Compare
- npm run prerelease - npm run release
a847f72
to
942c1c7
Compare
942c1c7
to
89c2af6
Compare
89c2af6
to
e65d3f1
Compare
e65d3f1
to
0cc7119
Compare
0cc7119
to
e5da73a
Compare
This PR address the current long-winded release process, by merging a couple of steps.
Changes are:
npm run prerelease
andnpm run release
pre-release.sh
shell script that runs:npm run build:packages
npm run build:dist
lerna publish --skip-git --skip-npm
and if all successful it
release.sh
shell script that runs:npm-publish.sh
shell script ffor each packagedist
folder ready for attaching to release tab in Githubnpm-publish.sh
shell scripts that:npm publish
for each packagePerhaps we could merge this into #545 and test with that as the documentation describes that package folder structure