fix: use node20 as GitHub runner (#654) #85
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
"on": | |
push: | |
branches: | |
- master | |
name: release | |
jobs: | |
release: | |
name: release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
cache: npm | |
- run: npm ci | |
- run: npm run build | |
- run: rm .gitignore | |
- run: npx semantic-release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- run: | | |
git config user.name github-actions | |
git config user.email github-actions@github.com | |
git add .gitignore dist/ | |
git commit -m "build" | |
- run: >- | |
git push -f | |
https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git | |
HEAD:refs/heads/v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- run: >- | |
git push -f | |
https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git | |
HEAD:refs/heads/v1.x | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |