Skip to content

Commit

Permalink
Update Node.js version to 20 and use pnpm for dependency installation
Browse files Browse the repository at this point in the history
  • Loading branch information
minpeter committed Apr 11, 2024
1 parent e1afdd1 commit 75c29a3
Showing 1 changed file with 24 additions and 5 deletions.
29 changes: 24 additions & 5 deletions .github/workflows/docker-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,35 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Nodejs
uses: actions/setup-node@v3
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20

- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: npm install
run: pnpm install

- name: Build
run: npm run build
run: pnpm build
env:
VITE_APP_BACKEND_BASEURL: https://api.tmpf.me

Expand Down

0 comments on commit 75c29a3

Please sign in to comment.