Merge pull request #1349 from dequelabs/release-v6.2.1 #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: Tag version | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
tag_release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: 'master' | |
- run: | | |
git config user.name attest-team-ci | |
git config user.email aciattestteamci@deque.com | |
VERSION=$(node -p 'require("./package.json").version') | |
if [ -z "$VERSION" ]; then | |
echo "VERSION cannot be empty" | |
exit 1 | |
fi | |
git tag -a "v$VERSION" -m "v$VERSION" | |
git push origin "refs/tags/v$VERSION" |