From a804b09d5e07beaaaa07f69f07f2a999e1eb9669 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Wed, 31 Jan 2024 11:13:22 +0100 Subject: [PATCH] ci: Replace `pnpm/action-setup` action with corepack (no-changelog) --- .github/workflows/check-documentation-urls.yml | 3 +-- .github/workflows/check-pr-title.yml | 3 +-- .github/workflows/ci-master.yml | 6 ++---- .github/workflows/ci-postgres-mysql.yml | 6 +++--- .github/workflows/ci-pull-requests.yml | 6 ++---- .github/workflows/release-create-pr.yml | 1 - .github/workflows/release-publish.yml | 2 +- .github/workflows/test-workflows.yml | 5 ++--- .github/workflows/units-tests-reusable.yml | 3 +-- 9 files changed, 13 insertions(+), 22 deletions(-) diff --git a/.github/workflows/check-documentation-urls.yml b/.github/workflows/check-documentation-urls.yml index 42d7f317de7f9..b14daec6b056c 100644 --- a/.github/workflows/check-documentation-urls.yml +++ b/.github/workflows/check-documentation-urls.yml @@ -16,8 +16,7 @@ jobs: steps: - uses: actions/checkout@v4.1.1 - - uses: pnpm/action-setup@v2.4.0 - + - run: corepack enable - uses: actions/setup-node@v4.0.1 with: node-version: 18.x diff --git a/.github/workflows/check-pr-title.yml b/.github/workflows/check-pr-title.yml index 77d8defe4b5fc..7ad38efb810e5 100644 --- a/.github/workflows/check-pr-title.yml +++ b/.github/workflows/check-pr-title.yml @@ -18,8 +18,7 @@ jobs: - name: Check out branch uses: actions/checkout@v4.1.1 - - uses: pnpm/action-setup@v2.4.0 - + - run: corepack enable - uses: actions/setup-node@v4.0.1 with: node-version: 18.x diff --git a/.github/workflows/ci-master.yml b/.github/workflows/ci-master.yml index ba6547c696a87..41ee830bd58ae 100644 --- a/.github/workflows/ci-master.yml +++ b/.github/workflows/ci-master.yml @@ -18,8 +18,7 @@ jobs: steps: - uses: actions/checkout@v4.1.1 - - uses: pnpm/action-setup@v2.4.0 - + - run: corepack enable - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4.0.1 with: @@ -64,8 +63,7 @@ jobs: repository: n8n-io/n8n ref: ${{ inputs.branch }} - - uses: pnpm/action-setup@v2.4.0 - + - run: corepack enable - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4.0.1 with: diff --git a/.github/workflows/ci-postgres-mysql.yml b/.github/workflows/ci-postgres-mysql.yml index 16c526034252e..b8d0395277286 100644 --- a/.github/workflows/ci-postgres-mysql.yml +++ b/.github/workflows/ci-postgres-mysql.yml @@ -18,7 +18,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4.1.1 - - uses: pnpm/action-setup@v2.4.0 + - run: corepack enable - uses: actions/setup-node@v4.0.1 with: node-version: 18.x @@ -43,7 +43,7 @@ jobs: DB_MYSQLDB_PASSWORD: password steps: - uses: actions/checkout@v4.1.1 - - uses: pnpm/action-setup@v2.4.0 + - run: corepack enable - uses: actions/setup-node@v4.0.1 with: node-version: 18.x @@ -76,7 +76,7 @@ jobs: DB_POSTGRESDB_PASSWORD: password steps: - uses: actions/checkout@v4.1.1 - - uses: pnpm/action-setup@v2.4.0 + - run: corepack enable - uses: actions/setup-node@v4.0.1 with: node-version: 18.x diff --git a/.github/workflows/ci-pull-requests.yml b/.github/workflows/ci-pull-requests.yml index 4f966c8ff71fd..17bfb05891725 100644 --- a/.github/workflows/ci-pull-requests.yml +++ b/.github/workflows/ci-pull-requests.yml @@ -12,8 +12,7 @@ jobs: repository: n8n-io/n8n ref: refs/pull/${{ github.event.pull_request.number }}/merge - - uses: pnpm/action-setup@v2.4.0 - + - run: corepack enable - name: Use Node.js 18 uses: actions/setup-node@v4.0.1 with: @@ -50,8 +49,7 @@ jobs: repository: n8n-io/n8n ref: refs/pull/${{ github.event.pull_request.number }}/merge - - uses: pnpm/action-setup@v2.4.0 - + - run: corepack enable - name: Use Node.js 18 uses: actions/setup-node@v4.0.1 with: diff --git a/.github/workflows/release-create-pr.yml b/.github/workflows/release-create-pr.yml index aebfaa5693075..e2cca93d3247e 100644 --- a/.github/workflows/release-create-pr.yml +++ b/.github/workflows/release-create-pr.yml @@ -35,7 +35,6 @@ jobs: fetch-depth: 0 ref: ${{ github.event.inputs.base-branch }} - - uses: pnpm/action-setup@v2.4.0 - uses: actions/setup-node@v4.0.1 with: node-version: 18.x diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml index 3d8c103e50981..f63166b6b5950 100644 --- a/.github/workflows/release-publish.yml +++ b/.github/workflows/release-publish.yml @@ -23,7 +23,7 @@ jobs: with: fetch-depth: 0 - - uses: pnpm/action-setup@v2.4.0 + - run: corepack enable - uses: actions/setup-node@v4.0.1 with: node-version: 18.x diff --git a/.github/workflows/test-workflows.yml b/.github/workflows/test-workflows.yml index fcb70bd7aa05f..7856b42f4fd92 100644 --- a/.github/workflows/test-workflows.yml +++ b/.github/workflows/test-workflows.yml @@ -23,9 +23,8 @@ jobs: repository: n8n-io/test-workflows path: test-workflows - - uses: pnpm/action-setup@v2.4.0 - with: - package_json_file: n8n/package.json + - run: corepack enable + working-directory: n8n - uses: actions/setup-node@v4.0.1 with: diff --git a/.github/workflows/units-tests-reusable.yml b/.github/workflows/units-tests-reusable.yml index f6325ab2869cd..386612678c1e5 100644 --- a/.github/workflows/units-tests-reusable.yml +++ b/.github/workflows/units-tests-reusable.yml @@ -35,8 +35,7 @@ jobs: repository: n8n-io/n8n ref: ${{ inputs.ref }} - - uses: pnpm/action-setup@v2.4.0 - + - run: corepack enable - name: Use Node.js ${{ inputs.nodeVersion }} uses: actions/setup-node@v4.0.1 with: