From 7d41681c59cb9cc83d3afbcc287356063a841e29 Mon Sep 17 00:00:00 2001 From: chad Date: Tue, 13 Aug 2024 14:06:36 -0700 Subject: [PATCH] ci: update pr-release workflow --- .github/workflows/pr-release.yaml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr-release.yaml b/.github/workflows/pr-release.yaml index 593d7fce145..ef2dc52d321 100644 --- a/.github/workflows/pr-release.yaml +++ b/.github/workflows/pr-release.yaml @@ -11,14 +11,23 @@ jobs: # if: false permissions: write-all steps: - - name: Checkout + - name: Checkout latest PR head uses: actions/checkout@v4 with: fetch-depth: 0 - ref: ${{ github.event.pull_request.head.ref }} + ref: ${{ github.event.pull_request.head.sha }} - - name: CI Setup - uses: ./.github/actions/ci-setup + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: ${{ inputs.node-version }} + registry-url: "https://registry.npmjs.org" + + - name: Setup PNPM + uses: pnpm/action-setup@v4 + with: + version: ${{ inputs.pnpm-version }} + run_install: true - name: Build run: pnpm build