From 1dec9eda76d9e251c0e8be86f636e76a53ba5ed0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20=27birdy=27=20Danjou?= Date: Tue, 26 Mar 2024 12:52:44 +0100 Subject: [PATCH] ci: fix actions setup for pnpm --- .github/workflows/publish.yml | 9 +++++++-- .github/workflows/publishprerelease.yml | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 767ce09..be4168d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,11 +7,16 @@ on: jobs: publish: runs-on: ubuntu-latest + strategy: + matrix: + node-version: + - 18.x steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: pnpm/action-setup@v3 with: - node-version: 18.x + version: 8 - run: cp .env.example .env - run: pnpm install - run: pnpm compile diff --git a/.github/workflows/publishprerelease.yml b/.github/workflows/publishprerelease.yml index 55e706c..08afccc 100644 --- a/.github/workflows/publishprerelease.yml +++ b/.github/workflows/publishprerelease.yml @@ -7,11 +7,16 @@ on: jobs: publish: runs-on: ubuntu-latest + strategy: + matrix: + node-version: + - 18.x steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: pnpm/action-setup@v3 with: - node-version: 18.x + version: 8 - run: cp .env.example .env - run: pnpm install - run: pnpm compile