Skip to content

Merge pull request #2 from philips-forks/feat/trigger-release #9

Merge pull request #2 from philips-forks/feat/trigger-release

Merge pull request #2 from philips-forks/feat/trigger-release #9

Workflow file for this run

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