Commit 203d80d5 authored by Robert Knight's avatar Robert Knight Committed by Nick Stenning

Add a delay after pushing a new tag before trying to create a GH release (#78)

Avoid an issue where trying to create a GH release immediately after
pushing the tag often fails.
parent 45ee38ce
...@@ -142,7 +142,7 @@ ...@@ -142,7 +142,7 @@
"test": "gulp test-app", "test": "gulp test-app",
"preversion": "npm run test", "preversion": "npm run test",
"version": "make clean all && ./scripts/update-changelog.js && git add CHANGELOG.md", "version": "make clean all && ./scripts/update-changelog.js && git add CHANGELOG.md",
"postversion": "git push && git push --tags && ./scripts/create-github-release.js", "postversion": "./scripts/postversion.sh",
"prepublish": "npm run-script build" "prepublish": "npm run-script build"
} }
} }
#!/usr/bin/env sh
SCRIPT_DIR=$(dirname `readlink -f "$0"`)
git push
git push --tags
# Wait a moment to give GitHub a chance to realize that the tag exists
sleep 2
$SCRIPT_DIR/create-github-release.js
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment