Skip to content
This repository was archived by the owner on Jul 19, 2023. It is now read-only.

Commit a331196

Browse files
committed
Simplify relase steps
1 parent 18ed326 commit a331196

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2018-2020 individual contributors to gulp-w3c-html-validator
3+
Copyright (c) 2018-2021 individual contributors to gulp-w3c-html-validator
44
Copyright (c) 2013 Callum Macrae
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy

spec-runner.sh.command

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,31 +43,31 @@ releaseInstructions() {
4343
echo "Release progress:"
4444
echo " $version (local) --> $pushed (pushed) --> $released (released)"
4545
echo
46-
test -d dist && echo "Next release action:" || echo "When ready to release:"
47-
checkin=$(test -d dist && echo "dist files" || echo "package.json")
46+
test "$version" ">" "$released" && mode="NOT released" || mode="RELEASED"
47+
echo "Current version is: $mode"
48+
echo
4849
nextActionBump() {
50+
echo "When ready to do the next release:"
51+
echo
4952
echo " === Increment version ==="
5053
echo " Edit pacakge.json to bump $version to next version number"
5154
echo " $projectHome/package.json"
5255
}
53-
nextActionCommit() {
56+
nextActionCommitTagPub() {
57+
echo "Verify all tests pass and then finalize the release:"
58+
echo
5459
echo " === Commit and push ==="
55-
echo " Check in package.json for $version with the message:"
56-
echo " Next release"
57-
}
58-
nextActionTag() {
59-
echo " === Release checkin ==="
60-
echo " Check in $checkin with the message:"
60+
echo " Check in all changed files with the message:"
6161
echo " Release $version"
62+
echo
6263
echo " === Tag and publish ==="
6364
echo " cd $projectHome"
6465
echo " git tag --annotate --message 'Release' $version"
6566
echo " git remote --verbose"
6667
echo " git push origin --tags"
6768
echo " npm publish"
6869
}
69-
nextAction() { test "$version" ">" "$released" && nextActionTag || nextActionBump; }
70-
test "$version" ">" "$pushed" && test -d dist && nextActionCommit || nextAction
70+
test "$version" ">" "$released" && nextActionCommitTagPub || nextActionBump
7171
echo
7272
}
7373

0 commit comments

Comments
 (0)