chore(deps): bump @xhayper/discord-rpc from 1.0.21 to 1.0.24 #62
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: Build and package application | |
on: | |
workflow_dispatch: | |
branches: [ main ] | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
release: | |
runs-on: ${{ matrix.os }} | |
continue-on-error: false | |
timeout-minutes: 30 | |
strategy: | |
matrix: | |
os: [windows-latest, ubuntu-latest, macos-latest] | |
node-version: [16.x] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v2 | |
# Install Node.js, npm and yarn | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
check-latest: true | |
cache: yarn | |
cache-dependency-path: yarn.lock | |
# Install necessary system dependencies to compile on Linux | |
- name: Install system dependencies | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt update | |
sudo apt install libc6-dev-i386 gcc-multilib g++-multilib | |
# Module caching | |
- name: Cache node_modules | |
uses: actions/cache@v2 | |
id: cacheNodeModules | |
with: | |
path: ${{ github.workspace }}\node_modules | |
key: ${{ runner.os }}-node_modules-cache-v2-${{ hashFiles(format('{0}{1}', github.workspace, '\yarn.lock')) }} | |
restore-keys: | | |
${{ runner.os }}-node_modules-cache-v2- | |
- name: Cache electron | |
uses: actions/cache@v2 | |
with: | |
path: ${{ env.LOCALAPPDATA }}\electron\Cache | |
key: ${{ runner.os }}-electron-cache-v2-${{ hashFiles(format('{0}{1}', github.workspace, '\yarn.lock')) }} | |
- name: Cache electron-builder | |
uses: actions/cache@v2 | |
with: | |
path: ${{ env.LOCALAPPDATA }}\electron-builder\cache | |
key: ${{ runner.os }}-electron-builder-cache-v2-${{ hashFiles(format('{0}{1}', github.workspace, '\yarn.lock')) }} | |
- name: Run build script | |
run: yarn build --minify |