Skip to content

Update package.json

Update package.json #1

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Publish
on:
push:
tags: v*
jobs:
publish:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
env:
NodeVersion: 20.x
GoVersion: ^1.21.4
steps:
- uses: actions/checkout4
- name: Use Go ${{ env.GoVersion }}
uses: actions/setup-go@v4
with:
go-version: ${{ env.GoVersion }}
- run: go mod download
working-directory: ./cli
- name: Use Node.js ${{ env.NodeVersion }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NodeVersion }}
cache: 'npm'
- run: npm i
- run: npm run build
- name: Build/release Electron app
uses: samuelmeuli/action-electron-builder@v1
with:
github_token: ${{ secrets.github_token }}
release: ${{ startsWith(github.ref, 'refs/tags/v') }}