Release #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
workflow_dispatch: | |
inputs: | |
major: | |
description: Major version number (MAJOR.minor.patch) | |
required: true | |
minor: | |
description: Minor version number (major.MINOR.patch) | |
required: true | |
patch: | |
description: Patch version number (major.minor.PATCH) | |
required: true | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
env: | |
MAJOR: ${{ inputs.major }} | |
MINOR: ${{ inputs.minor }} | |
PATCH: ${{ inputs.patch }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: configure git | |
run: | | |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config --global user.name "github-actions[bot]" | |
- run: npm version "${MAJOR}.${MINOR}.${PATCH}" | |
- name: update tags | |
run: | | |
git push origin main | |
git push origin "v${MAJOR}.${MINOR}.${PATCH}" | |
git tag -fa "v${MAJOR}.${MINOR}" -m "setup-ndk v${MAJOR}.${MINOR}.${PATCH}" | |
git push origin "v${MAJOR}.${MINOR}" --force | |
git tag -fa "v${MAJOR}" -m "setup-ndk v${MAJOR}.${MINOR}.${PATCH}" | |
git push origin "v${MAJOR}" --force | |
git checkout -b "releases/v${MAJOR}.${MINOR}.${PATCH}" | |
git push origin "releases/v${MAJOR}.${MINOR}.${PATCH}" |