Skip to content

chore: Update release.yml to use 'npm ci' instead of 'npm install' #65

chore: Update release.yml to use 'npm ci' instead of 'npm install'

chore: Update release.yml to use 'npm ci' instead of 'npm install' #65

Workflow file for this run

name: Release
on:
push:
branches: ["main"]
paths-ignore:
- "README.md"
- "README-*.md"
- ".github/ISSUE_TEMPLATE/*"
jobs:
publish_on_linux:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Node v20
uses: actions/setup-node@v3
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Install electron-builder
run: npm i electron-builder -g
- name: Publish
env:
GH_TOKEN: ${{ secrets.TOKEN }}
run: npm run publish:linux
publish_on_win:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Node v20
uses: actions/setup-node@v3
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Install electron-builder
run: npm i electron-builder -g
- name: Publish
env:
GH_TOKEN: ${{ secrets.TOKEN }}
run: npm run publish:win
publish_on_macos:
runs-on: macOS-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Node v20
uses: actions/setup-node@v3
with:
node-version: 20
cache: npm
- name: Install Python
run: brew install [email protected]
- name: "Install Python setuptools"
run: brew install python-setuptools
- name: Install Build Tools
run: |
brew install libtool automake autoconf
sudo xcode-select --reset
- name: Update node-gyp
run: npm install -g node-gyp
- name: Install dependencies
run: npm ci
- name: Install electron-builder
run: npm i electron-builder -g
- name: Publish
env:
GH_TOKEN: ${{ secrets.TOKEN }}
run: npm run publish:mac