Set version to '1.5' #16
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: Build | |
on: | |
push: | |
branches: | |
- 'release-*' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: package.json | |
cache: npm | |
- uses: dotnet/nbgv@master | |
id: nbgv | |
with: | |
stamp: package.json | |
- run: npm ci | |
- run: npm test | |
- run: npm run build | |
# this makes it possible to commit | |
- run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
# force-add the ignored 'dist' folder, amend HEAD, and tag it with the version number | |
- run: | | |
git add -f dist | |
git commit --amend -C HEAD | |
git tag 'v${{ steps.nbgv.outputs.SemVer2 }}' | |
# push ONLY the tag, so the original commit remains w/o the 'dist' folder | |
- run: git push origin 'refs/tags/v${{ steps.nbgv.outputs.SemVer2 }}' |