8
8
runs-on : ubuntu-latest
9
9
defaults :
10
10
run :
11
- working-directory : ' frontend'
11
+ working-directory : " frontend"
12
12
13
13
permissions :
14
14
contents : read
15
15
packages : write
16
16
17
17
steps :
18
- -
19
- uses : actions/checkout@v3
20
- -
21
- name : Set up QEMU
18
+ - uses : actions/checkout@v3
19
+ - name : Set up QEMU
22
20
uses : docker/setup-qemu-action@v2
23
21
with :
24
22
platforms : arm64
25
- -
26
- name : Set up Docker Buildx
23
+ - name : Set up Docker Buildx
27
24
uses : docker/setup-buildx-action@v2
28
- -
29
- name : Docker image metadata
25
+ - name : Docker image metadata
30
26
id : meta
31
27
uses : docker/metadata-action@v4
32
28
with :
@@ -36,33 +32,26 @@ jobs:
36
32
type=raw,value=main,enable=${{ github.ref == 'refs/heads/main' }}
37
33
type=ref,event=pr
38
34
type=sha
39
- -
40
- name : Login to GitHub Container Registry
35
+ - name : Login to GitHub Container Registry
41
36
uses : docker/login-action@v2
42
37
with :
43
- registry : ghcr.io
44
- username : ${{ github.actor }}
45
- password : ${{ secrets.GITHUB_TOKEN }}
46
- -
47
- name : Install Node.js
38
+ registry : ghcr.io
39
+ username : ${{ github.actor }}
40
+ password : ${{ secrets.GITHUB_TOKEN }}
41
+ - name : Install Node.js
48
42
uses : actions/setup-node@v3
49
43
with :
50
44
node-version-file : frontend/.node-version
51
- cache : ' npm '
45
+ cache : " pnpm "
52
46
cache-dependency-path : frontend/package-lock.json
53
47
54
- -
55
- name : Install dependencies
56
- run : npm install
48
+ - name : Install dependencies
49
+ run : pnpm i
57
50
58
- -
59
- name : Build
60
- run : npm run build
61
- env :
62
- NODE_OPTIONS : --openssl-legacy-provider
51
+ - name : Build
52
+ run : pnpm build
63
53
64
- -
65
- name : Build and push
54
+ - name : Build and push
66
55
uses : docker/build-push-action@v4
67
56
with :
68
57
context : frontend/
0 commit comments