Skip to content

fix: use node20 as runtime (#247) #240

fix: use node20 as runtime (#247)

fix: use node20 as runtime (#247) #240

Workflow file for this run

"on":
push:
branches:
- main
name: release
jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- run: npm ci
- run: npm run build
- run: npm install @semantic-release/git
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: 474182
private-key: ${{ secrets.GR2M_SEMANTIC_RELEASE_PRIVATE_KEY }}
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
- run: >-
git push
https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
HEAD:refs/heads/v1.x
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}