Skip to content

Commit bff2e93

Browse files
committed
Change GitHub Action workflow from npm to pnpm
1 parent 7a96eaa commit bff2e93

File tree

2 files changed

+30
-7
lines changed

2 files changed

+30
-7
lines changed

.github/workflows/deploy.yml

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,37 @@ on:
77
jobs:
88
build:
99
runs-on: ubuntu-latest
10+
defaults:
11+
run:
12+
working-directory: mxstatus
13+
env:
14+
NODE_OPTIONS: --openssl-legacy-provider
1015
steps:
11-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v4
17+
18+
- name: Set up pnpm
19+
uses: pnpm/action-setup@v4
20+
with:
21+
version: 9
22+
run_install: false
23+
24+
- name: Set up Node.js
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: 18
28+
cache: pnpm
29+
cache-dependency-path: mxstatus/pnpm-lock.yaml
30+
31+
- name: Install dependencies
32+
run: pnpm install --frozen-lockfile
33+
34+
- name: Build
35+
env:
36+
CI: false
37+
run: pnpm run build
38+
1239
- name: Deploy react app to github pages
1340
run: |
14-
pwd
15-
cd mxstatus
16-
pwd
17-
export NODE_OPTIONS=--openssl-legacy-provider
18-
npm ci
19-
CI=false npm run build
2041
git config user.name github-actions
2142
git config user.email github-actions@github.com
2243
git --work-tree build add --all

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
hidden/
2+
example_data.json
3+
24
# Logs
35
logs
46
*.log

0 commit comments

Comments
 (0)