Skip to content

Modify release gh action to run only on release branch push #26

Modify release gh action to run only on release branch push

Modify release gh action to run only on release branch push #26

Workflow file for this run

name: Release
on:
push:
branches:
- release
jobs:
release:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install dependencies
run: npm install
- name: Publish to GitHub Releases
run: npm run publish -- --prerelease
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}