2# Tag and publish a new release of `purescm`
6# ./publish-release.sh <major|minor|patch...>
11# Fail if we are not on trunk
12BRANCH=$(git branch --show-current)
13if [ "${BRANCH}" != "master" ]; then
14 echo "Please checkout master branch"
20 echo "No arguments supplied"
27npm version $1 --no-git-tag-version
29# `npm version` also updates spago.yaml, so we grap the new
31NEW_TAG=$(grep -Po "(?<=version: )([\d.]+)" spago.yaml)
33git add package.json package-lock.json spago.yaml
34git commit -m "$NEW_TAG"
37rm -rf bundle output output-es
40npm publish --tag latest
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list