From c85265a09fd4a34e6c3d923f3cfd6072f9663ce6 Mon Sep 17 00:00:00 2001 From: My Ho Date: Wed, 19 Jun 2019 13:49:38 -0700 Subject: [PATCH 1/3] Bumped to version 1.0.0-4 --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index b5ab78e3..3e81f791 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "serverless-azure-functions", - "version": "1.0.0-3", + "version": "1.0.0-4", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 720da473..744b556f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "serverless-azure-functions", - "version": "1.0.0-3", + "version": "1.0.0-4", "description": "Provider plugin for the Serverless Framework v1.x which adds support for Azure Functions.", "license": "MIT", "main": "./lib/index.js", From 24916ace09a68250d3b929cd19aae0a18155da5d Mon Sep 17 00:00:00 2001 From: My Ho Date: Wed, 19 Jun 2019 14:58:50 -0700 Subject: [PATCH 2/3] add docs for releasing and scripts to do it --- docs/RELEASE.md | 26 +++++++++++++++++++ ...ishBeta.sh => npmVersionBumpPrerelease.sh} | 0 scripts/tagBranchForRelease.sh | 16 ++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 docs/RELEASE.md rename scripts/{npmPublishBeta.sh => npmVersionBumpPrerelease.sh} (100%) create mode 100755 scripts/tagBranchForRelease.sh diff --git a/docs/RELEASE.md b/docs/RELEASE.md new file mode 100644 index 00000000..725276f9 --- /dev/null +++ b/docs/RELEASE.md @@ -0,0 +1,26 @@ +# Releasing new version + +## Beta development + +This is the instruction on how to release new beta packages on the `dev` branch + +### Steps + +1. Check out `dev` +1. Pull latest +1. Run script to bump versiona and push changes to new branch `npmRelease` + + ```bash + ./scripts/npmVersionBumpPrerelease.sh + ``` + +1. Open PR, get reviews +1. Merge PR +1. Check out `dev` +1. Run script + + ```bash + scripts/tagBranchForRelease.sh + ``` + +1. Travis will automatically release to npm diff --git a/scripts/npmPublishBeta.sh b/scripts/npmVersionBumpPrerelease.sh similarity index 100% rename from scripts/npmPublishBeta.sh rename to scripts/npmVersionBumpPrerelease.sh diff --git a/scripts/tagBranchForRelease.sh b/scripts/tagBranchForRelease.sh new file mode 100755 index 00000000..6afa93e8 --- /dev/null +++ b/scripts/tagBranchForRelease.sh @@ -0,0 +1,16 @@ +#/bin/sh +set -eu + +RELEASE_BRANCH=$1 +ON_BRANCH=$(git rev-parse --abbrev-ref HEAD) + +if [[ $ON_BRANCH != $RELEASE_BRANCH ]]; then + echo "You're on ${ON_BRANCH}. Please checkout out $RELEASE_BRANCH before running this script" + exit 1 +fi + +echo "getting latest" +git pull +PACKAGE_VERSION=$(node -p -e "require('./package.json').version") +git tag $PACKAGE_VERSION +git push origin $PACKAGE_VERSION From 70a59a01591aebc66759f558e61bad4b87ea1b86 Mon Sep 17 00:00:00 2001 From: My Ho Date: Wed, 19 Jun 2019 15:12:50 -0700 Subject: [PATCH 3/3] update doc --- docs/RELEASE.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/RELEASE.md b/docs/RELEASE.md index 725276f9..63b41974 100644 --- a/docs/RELEASE.md +++ b/docs/RELEASE.md @@ -2,13 +2,13 @@ ## Beta development -This is the instruction on how to release new beta packages on the `dev` branch +Instructions for releasing beta packages on the `dev` branch ### Steps 1. Check out `dev` 1. Pull latest -1. Run script to bump versiona and push changes to new branch `npmRelease` +1. Run script to bump versions and push changes to new branch `npmRelease` ```bash ./scripts/npmVersionBumpPrerelease.sh