diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 3c251acfb9..c6de07cbfd 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -8,15 +8,20 @@ inputs: runs: using: composite steps: + - name: Setup Node (${{ inputs.node }}) + uses: actions/setup-node@v4 + with: + node-version: ${{ inputs.node }} + - name: Setup pnpm - uses: pnpm/action-setup@v3 + uses: pnpm/action-setup@v4 with: version: 9 - - name: Setup Node (${{ inputs.node }}) - uses: actions/setup-node@v3 + - name: Checkout repo + uses: actions/checkout@v3 with: - node-version: ${{ inputs.node }} + fetch-depth: 0 - name: Install dependencies shell: bash diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 64dc0ec1c2..312b399444 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -13,11 +13,6 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 20 steps: - - name: Checkout repo - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Setup repo uses: ./.github/actions/setup @@ -40,11 +35,6 @@ jobs: runs-on: ${{ matrix.os }} steps: - - name: Checkout repo - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Setup repo uses: ./.github/actions/setup with: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2366e1d7be..946f33ee46 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,22 +7,11 @@ on: # Allows you to run this workflow manually from the Actions tab on GitHub. workflow_dispatch: -# Allow this job to clone the repo and create a page deployment -permissions: - contents: read - pages: write - id-token: write - jobs: update-gh-pages: runs-on: ubuntu-latest timeout-minutes: 20 steps: - - name: Checkout repo - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Setup repo uses: ./.github/actions/setup @@ -48,11 +37,6 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 20 steps: - - name: Checkout repo - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Setup repo uses: ./.github/actions/setup