From 9bf9a80a7a7d16d8c4c3fe528992f87ea7dc4eb2 Mon Sep 17 00:00:00 2001 From: Dzikri Aziz Date: Thu, 13 Jun 2024 14:28:08 +0700 Subject: [PATCH] Update release GH workflow --- .github/workflows/release.yml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b517926..6e6a5e4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,7 @@ concurrency: ${{ github.workflow }}-${{ github.ref }} jobs: release: - # prevents this action from running on forks + # Prevent this action from running on forks. if: github.repository == 'kucrut/vite-for-wp' name: Release runs-on: ubuntu-latest @@ -17,22 +17,20 @@ jobs: - name: Checkout repo uses: actions/checkout@v3 with: - # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits + # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits. fetch-depth: 0 - - name: Setup Node.js - uses: actions/setup-node@v3 - with: - node-version: 18 + - name: Setup PNPM + uses: pnpm/action-setup@v3 - - uses: pnpm/action-setup@v2.2.2 - name: Install pnpm - id: pnpm-install + - name: Setup Nodejs + uses: actions/setup-node@v3 with: - run_install: false + cache: "pnpm" + node-version: "20" - name: Install dependencies - run: pnpm install --frozen-lockfile --silent + run: pnpm install --frozen-lockfile --recursive --silent --strict-peer-dependencies - id: get_version shell: bash