Skip to content

Commit 5061f65

Browse files
committed
move to pnpm for gh actions
1 parent 21116bf commit 5061f65

File tree

1 file changed

+16
-27
lines changed

1 file changed

+16
-27
lines changed

.github/workflows/docker-frontend.yaml

+16-27
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,21 @@ jobs:
88
runs-on: ubuntu-latest
99
defaults:
1010
run:
11-
working-directory: 'frontend'
11+
working-directory: "frontend"
1212

1313
permissions:
1414
contents: read
1515
packages: write
1616

1717
steps:
18-
-
19-
uses: actions/checkout@v3
20-
-
21-
name: Set up QEMU
18+
- uses: actions/checkout@v3
19+
- name: Set up QEMU
2220
uses: docker/setup-qemu-action@v2
2321
with:
2422
platforms: arm64
25-
-
26-
name: Set up Docker Buildx
23+
- name: Set up Docker Buildx
2724
uses: docker/setup-buildx-action@v2
28-
-
29-
name: Docker image metadata
25+
- name: Docker image metadata
3026
id: meta
3127
uses: docker/metadata-action@v4
3228
with:
@@ -36,33 +32,26 @@ jobs:
3632
type=raw,value=main,enable=${{ github.ref == 'refs/heads/main' }}
3733
type=ref,event=pr
3834
type=sha
39-
-
40-
name: Login to GitHub Container Registry
35+
- name: Login to GitHub Container Registry
4136
uses: docker/login-action@v2
4237
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
4842
uses: actions/setup-node@v3
4943
with:
5044
node-version-file: frontend/.node-version
51-
cache: 'npm'
45+
cache: "pnpm"
5246
cache-dependency-path: frontend/package-lock.json
5347

54-
-
55-
name: Install dependencies
56-
run: npm install
48+
- name: Install dependencies
49+
run: pnpm i
5750

58-
-
59-
name: Build
60-
run: npm run build
61-
env:
62-
NODE_OPTIONS: --openssl-legacy-provider
51+
- name: Build
52+
run: pnpm build
6353

64-
-
65-
name: Build and push
54+
- name: Build and push
6655
uses: docker/build-push-action@v4
6756
with:
6857
context: frontend/

0 commit comments

Comments
 (0)