forked from chrisknepper/android-messages-desktop
-
Notifications
You must be signed in to change notification settings - Fork 30
51 lines (42 loc) · 1.48 KB
/
master.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: master
on:
push:
branches: [master]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- macos-latest
- windows-latest
- ubuntu-latest
node-version:
- 20
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Cache node_modules
uses: actions/cache@v4
with:
path: ./node_modules
key: ${{ matrix.os }}-${{ matrix.node-version }}-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
env:
cache-name: node-modules
- run: sudo apt-get update -y && sudo apt-get install --no-install-recommends -y libopenjp2-tools rpm libarchive-tools
name: Install Linux Dependencies
if: (startsWith(matrix.os, 'ubuntu'))
- run: yarn install --frozen-lockfile
- run: yarn dist --publish onTagOrDraft
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Upload Build
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-${{ matrix.node-version }}
path: ./dist