v1.5.10 #9
Workflow file for this run
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: | |
release: | |
types: [released] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: package.json | |
cache: npm | |
# move the tracking tags to the release tag | |
- run: | | |
VERSION=${GITHUB_REF#refs/tags/v} | |
MAJOR=$(.github/semver get major $VERSION) | |
MINOR=$(.github/semver get minor $VERSION) | |
git tag -f "v$MAJOR" | |
git tag -f "v$MAJOR.$MINOR" | |
git push --force origin "refs/tags/v$MAJOR" "refs/tags/v$MAJOR.$MINOR" |