From 5d5c82e1fa0ad2bd5ab6fb44c5430993606e3397 Mon Sep 17 00:00:00 2001 From: Dipendra Upreti Date: Thu, 29 Aug 2024 12:50:01 +0545 Subject: [PATCH] fix(app): update github actions --- .../.github/workflows/shipjs-trigger.yml | 5 +---- .../app/templates/.github/workflows/test.yml | 18 +++++++++--------- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/generators/app/templates/.github/workflows/shipjs-trigger.yml b/generators/app/templates/.github/workflows/shipjs-trigger.yml index eb1c225..aaefcc2 100644 --- a/generators/app/templates/.github/workflows/shipjs-trigger.yml +++ b/generators/app/templates/.github/workflows/shipjs-trigger.yml @@ -19,15 +19,12 @@ jobs: with: node-version: 20 registry-url: "https://registry.npmjs.org" - - name: Install pnpm + - name: Setup pnpm and install dependencies uses: pnpm/action-setup@v4 with: run_install: | - - version: 8 - recursive: true args: [--frozen-lockfile, --strict-peer-dependencies] - - run: - pnpm -r install - run: | git config --global user.email "github-actions[bot]@users.noreply.github.com" git config --global user.name "github-actions[bot]" diff --git a/generators/app/templates/.github/workflows/test.yml b/generators/app/templates/.github/workflows/test.yml index 8b62c00..cb9da96 100644 --- a/generators/app/templates/.github/workflows/test.yml +++ b/generators/app/templates/.github/workflows/test.yml @@ -10,20 +10,20 @@ jobs: matrix: node-version: [20, 21] steps: - - uses: actions/checkout@v4 - name: Use node ${{ matrix.node-version }} + - name: Checkout + uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - name: Use node ${{ matrix.node-version }} + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - - uses: pnpm/action-setup@v2 - name: Install pnpm + - name: Setup pnpm and install dependencies + uses: pnpm/action-setup@v4 with: - version: 8 - - - name: Install Dependencies - run: pnpm install --frozen-lockfile + run_install: | + - recursive: true + args: [--frozen-lockfile, --strict-peer-dependencies] - name: Build packages run: pnpm build