Skip to content

Optimize GitHub Actions workflow for building and releasing the app #23

Optimize GitHub Actions workflow for building and releasing the app

Optimize GitHub Actions workflow for building and releasing the app #23

Workflow file for this run

name: Build and Release
on:
push:
tags:
- 'v*.*.*'
jobs:
build:
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 }}