Bump to Node 24 (#11) #13
This file contains hidden or 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: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| - uses: actions/checkout@v6 | |
| with: | |
| ref: dist | |
| path: dist | |
| - name: Clean | |
| working-directory: ./dist | |
| run: | | |
| git rm -rf . | |
| git clean -fxd | |
| - name: Build | |
| run: | | |
| npm install | |
| npm run all | |
| cp action.yml dist/action.yml | |
| - name: Release | |
| working-directory: ./dist | |
| run: | | |
| git config user.name github-actions | |
| git config user.email github-actions@github.com | |
| git add . --force | |
| git commit --allow-empty -m "Update $GITHUB_SHA" | |
| git tag -f -a -m "Update $GITHUB_SHA" v3 | |
| git push | |
| git push --tags -f |