From d4607381ed94b7e839828e751972014160b50a75 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: Fri, 2 Feb 2024 09:47:58 +0100 Subject: [PATCH] ci: Replace `pnpm/action-setup` action with corepack (no-changelog) (#8504) --- .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 42d7f317de..b14daec6b0 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 77d8defe4b..7ad38efb81 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 ba6547c696..41ee830bd5 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 16c5260342..b8d0395277 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 4f966c8ff7..17bfb05891 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 aebfaa5693..e2cca93d32 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 3d8c103e50..f63166b6b5 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 fcb70bd7aa..7856b42f4f 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 f6325ab286..386612678c 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: