Skip to content

Instantly share code, notes, and snippets.

@victorbruce
Last active October 19, 2021 04:11
Show Gist options
  • Save victorbruce/f9e18b687f6ba5d66d06c441e6945ce1 to your computer and use it in GitHub Desktop.
Save victorbruce/f9e18b687f6ba5d66d06c441e6945ce1 to your computer and use it in GitHub Desktop.
tag-version-release:
needs: build-production
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@master
- name: Install Dependencies
run: |
npm install
- name: Get Version Number
run: |
git config --local user.email "youremail@domain.com"
git config --local user.name "username"
export PACKAGE_VERSION=$(node -p -e 'require("./package.json").version')
git tag -a "$PACKAGE_VERSION" -m "latest version"
git push origin --tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment