electron-nightly Canary #1836
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: electron-nightly Canary | |
on: | |
schedule: | |
- cron: "15 8 * * *" | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-latest, macOS-latest, ubuntu-latest] | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag: v4.2.2 | |
with: | |
repository: electron/electron-quick-start | |
ref: refs/heads/main | |
path: electron-quick-start | |
- name: Setup Node.js | |
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # tag: v4.1.0 | |
with: | |
node-version: lts/* | |
- name: Replace electron with electron-nightly | |
run: | | |
cd electron-quick-start | |
npm uninstall --save-dev electron | |
npm install --save-dev electron-nightly@latest | |
shell: bash | |
- name: Install Electron Packager | |
run: | | |
cd electron-quick-start | |
npm install --save-dev @electron/packager@electron/packager | |
shell: bash | |
- name: Package | |
run: | | |
cd electron-quick-start | |
if [ "${{ matrix.os }}" == "macOS-latest" ]; then | |
node_modules/.bin/electron-packager . --arch=universal | |
else | |
node_modules/.bin/electron-packager . --arch=all | |
fi | |
shell: bash |