Skip to content

Commit 06c9ebe

Browse files
committed
chore: update GitHub Actions workflow to set environment variables, enhance pnpm caching, and modify Netlify deployment action
1 parent 245381a commit 06c9ebe

1 file changed

Lines changed: 14 additions & 15 deletions

File tree

.github/workflows/prod.yml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,15 @@ on:
77
branches:
88
- main
99
- master
10-
10+
env:
11+
NODE_OPTIONS: --max-old-space-size=32768
12+
STORE_PATH: ~/.pnpm-store
1113
# Jobs to carry out
1214
jobs:
1315
deploy:
1416
# Operating system to run job on
1517
runs-on: ubuntu-latest
18+
environment: production
1619
# Steps in job
1720
steps:
1821
# Get code from repo
@@ -37,17 +40,13 @@ jobs:
3740
with:
3841
node-version: 22.x
3942
cache: 'pnpm'
40-
- name: Get pnpm store directory
41-
shell: bash
42-
run: |
43-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
44-
- uses: actions/cache@v4
45-
name: Setup pnpm cache
46-
with:
47-
path: ${{ env.STORE_PATH }}
48-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
49-
restore-keys: |
50-
${{ runner.os }}-pnpm-store-
43+
- uses: actions/cache@v4
44+
name: Setup pnpm cache
45+
with:
46+
path: ${{ env.STORE_PATH }}
47+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
48+
restore-keys: |
49+
${{ runner.os }}-pnpm-store-
5150
- name: Install and build
5251
run: |
5352
pnpm install --frozen-lockfile
@@ -64,10 +63,10 @@ jobs:
6463
APP_WALLETCONNECT_PROJECT_ID: 20a23f0fe6fae2e96f807c475d075c04
6564
# Deploy to Netlify using our production secrets
6665
- name: Deploy to netlify
67-
uses: netlify/actions/cli@master
66+
id: netlify
67+
uses: qbtf/action-netlify-cli@v2
6868
env:
6969
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
7070
NETLIFY_SITE_ID: e3335be6-9531-4bd6-b1dc-302013899981
7171
with:
72-
args: deploy --dir=dist --prod
73-
secrets: '["NETLIFY_AUTH_TOKEN", "NETLIFY_SITE_ID_PROD"]'
72+
args: deploy --dir=dist --prod

0 commit comments

Comments
 (0)