feat: trigger release #12
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: "Release" | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: 'master' | |
- name: Keep dist up-to-date | |
run: | | |
npm i | |
npm run build | |
npm run pack | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add dist/index.js | |
git commit -m "chore: publish dist" || echo "nothing to commit" | |
git push origin master | |
- uses: actions/checkout@v2 | |
with: | |
ref: master | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
ref: master | |
- name: Semantic Release | |
run: | | |
npm ci | |
npx semantic-release | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |