@@ -4,106 +4,148 @@ on: [push]
44
55jobs :
66 build-macos :
7- runs-on : macos-10.15
7+ runs-on : macos-latest
88
99 steps :
10- - uses : actions/checkout@v2
10+ - uses : actions/checkout@v3
1111
12- - name : Get yarn cache
13- id : yarn-cache
14- run : echo "::set-output name=dir::$(yarn cache dir)"
12+ - name : Install Node.js
13+ uses : actions/setup-node@v3
14+ with :
15+ node-version-file : .nvmrc
16+
17+ - uses : pnpm/action-setup@v2
18+ name : Install pnpm
19+ id : pnpm-install
20+ with :
21+ run_install : false
1522
16- - uses : actions/cache@v1
23+ - name : Get pnpm store directory
24+ id : pnpm-cache
25+ shell : bash
26+ run : |
27+ echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
28+
29+ - uses : actions/cache@v3
30+ name : Setup pnpm cache
1731 with :
18- path : ${{ steps.yarn -cache.outputs.dir }}
19- key : ${{ runner.os }}-yarn- ${{ hashFiles('**/yarn. lock') }}
32+ path : ${{ steps.pnpm -cache.outputs.STORE_PATH }}
33+ key : ${{ runner.os }}-pnpm-store- ${{ hashFiles('**/pnpm- lock.yaml ') }}
2034 restore-keys : |
21- ${{ runner.os }}-yarn -
35+ ${{ runner.os }}-pnpm-store -
2236
23- - name : Install Dependencies
24- run : yarn install
37+ - name : Install dependencies
38+ run : pnpm install
2539
2640 - name : Build
27- run : yarn build
41+ run : pnpm build
2842
2943 - name : Make macOS (electron-builder)
3044 env :
3145 CSC_LINK : ${{ secrets.mac_certs }}
3246 CSC_KEY_PASSWORD : ${{ secrets.mac_certs_password }}
33- run : yarn make:macos --publish=never -c.mac.identity=null
47+ run : pnpm make:macos --publish=never -c.mac.identity=null
3448
3549 - name : Clean up builds
3650 run : rm -rfv dist/mac-universal
3751
38- - uses : actions/upload-artifact@v2
52+ - uses : actions/upload-artifact@v3
3953 with :
4054 name : Gitify-dist-mac
4155 path : dist/
4256
4357 build-windows :
44- runs-on : windows-2019
58+ runs-on : windows-latest
4559
4660 steps :
47- - uses : actions/checkout@v2
61+ - uses : actions/checkout@v3
62+
63+ - name : Install Node.js
64+ uses : actions/setup-node@v3
65+ with :
66+ node-version-file : .nvmrc
4867
49- - name : Get yarn cache
50- id : yarn-cache
51- run : echo "::set-output name=dir::$(yarn cache dir)"
68+ - uses : pnpm/action-setup@v2
69+ name : Install pnpm
70+ id : pnpm-install
71+ with :
72+ run_install : false
73+
74+ - name : Get pnpm store directory
75+ id : pnpm-cache
76+ shell : bash
77+ run : |
78+ echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
5279
53- - uses : actions/cache@v1
80+ - uses : actions/cache@v3
81+ name : Setup pnpm cache
5482 with :
55- path : ${{ steps.yarn -cache.outputs.dir }}
56- key : ${{ runner.os }}-yarn- ${{ hashFiles('**/yarn. lock') }}
83+ path : ${{ steps.pnpm -cache.outputs.STORE_PATH }}
84+ key : ${{ runner.os }}-pnpm-store- ${{ hashFiles('**/pnpm- lock.yaml ') }}
5785 restore-keys : |
58- ${{ runner.os }}-yarn -
86+ ${{ runner.os }}-pnpm-store -
5987
60- - name : Install Dependencies
61- run : yarn install
88+ - name : Install dependencies
89+ run : pnpm install
6290
6391 - name : Build
64- run : yarn build
92+ run : pnpm build
6593
6694 - name : Make Windows (electron-builder)
67- run : yarn make:win --publish=never
95+ run : pnpm make:win --publish=never
6896
6997 - name : Clean up builds
7098 run : Remove-Item dist/win-unpacked -Recurse
7199
72- - uses : actions/upload-artifact@v1
100+ - uses : actions/upload-artifact@v3
73101 with :
74102 name : Gitify-dist-win
75103 path : dist
76104
77105 build-linux :
78- runs-on : ubuntu-18.04
106+ runs-on : ubuntu-latest
79107
80108 steps :
81- - uses : actions/checkout@v2
109+ - uses : actions/checkout@v3
110+
111+ - name : Install Node.js
112+ uses : actions/setup-node@v3
113+ with :
114+ node-version-file : .nvmrc
115+
116+ - uses : pnpm/action-setup@v2
117+ name : Install pnpm
118+ id : pnpm-install
119+ with :
120+ run_install : false
82121
83- - name : Get yarn cache
84- id : yarn-cache
85- run : echo "::set-output name=dir::$(yarn cache dir)"
122+ - name : Get pnpm store directory
123+ id : pnpm-cache
124+ shell : bash
125+ run : |
126+ echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
86127
87- - uses : actions/cache@v1
128+ - uses : actions/cache@v3
129+ name : Setup pnpm cache
88130 with :
89- path : ${{ steps.yarn -cache.outputs.dir }}
90- key : ${{ runner.os }}-yarn- ${{ hashFiles('**/yarn. lock') }}
131+ path : ${{ steps.pnpm -cache.outputs.STORE_PATH }}
132+ key : ${{ runner.os }}-pnpm-store- ${{ hashFiles('**/pnpm- lock.yaml ') }}
91133 restore-keys : |
92- ${{ runner.os }}-yarn -
134+ ${{ runner.os }}-pnpm-store -
93135
94- - name : Install Dependencies
95- run : yarn install
136+ - name : Install dependencies
137+ run : pnpm install
96138
97139 - name : Build
98- run : yarn build
140+ run : pnpm build
99141
100142 - name : Make Linux (electron-builder)
101- run : yarn make:linux --publish=never
143+ run : pnpm make:linux --publish=never
102144
103145 - name : Clean up builds
104146 run : rm -rfv dist/linux-unpacked
105147
106- - uses : actions/upload-artifact@v1
148+ - uses : actions/upload-artifact@v3
107149 with :
108150 name : Gitify-dist-linux
109151 path : dist
0 commit comments