Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions docs/RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Releasing new version

## Beta development

Instructions for releasing beta packages on the `dev` branch

### Steps

1. Check out `dev`
1. Pull latest
1. Run script to bump versions 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
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
16 changes: 16 additions & 0 deletions scripts/tagBranchForRelease.sh
Original file line number Diff line number Diff line change
@@ -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