Skip to content

ci: add semantic-release scripts (#668) #86

ci: add semantic-release scripts (#668)

ci: add semantic-release scripts (#668) #86

Workflow file for this run

"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 }}