Skip to content

Update actions/checkout action to v4 #1885

Update actions/checkout action to v4

Update actions/checkout action to v4 #1885

Workflow file for this run

name: Build
on: push
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- name: Check out Git repository
uses: actions/[email protected]
- name: Cache npm dependencies
uses: actions/[email protected]
with:
path: '~/.npm'
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Node.js, NPM and Yarn
uses: actions/[email protected]
with:
node-version: 14
- name: Build Electron app
uses: samuelmeuli/[email protected]
with:
# GitHub token, automatically provided to the action
# (No need to define this secret in the repo settings)
github_token: ${{ secrets.github_token }}
# If the commit is tagged with a version (e.g. "v1.0.0"),
# release the app after building
release: ${{ startsWith(github.ref, 'refs/tags/v') }}