Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions .github/actions/setup-pnpm/action.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-action.json

name: 'Restore pnpm cache'
description: 'Sets up Node and pnpm, restores node_modules and ~/.cache/ from cache (no install)'
name: 'Setup pnpm'
description: 'Sets up Node and pnpm with lockfile-keyed store caching, then installs dependencies'
inputs:
node-version:
description: 'Version of Node'
Expand All @@ -10,13 +10,11 @@ inputs:
runs:
using: 'composite'
steps:
- uses: pnpm/action-setup@8912a9102ac27614460f54aedde9e1e7f9aec20d #v6.0.5
- uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 #v6.0.8
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e #v6.4.0
with:
node-version: ${{ inputs.node-version }}
- uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae #v5.0.5
with:
path: |
node_modules
~/.cache/
key: ${{ runner.os }}-node-${{ hashFiles('pnpm-lock.yaml') }}
cache: pnpm
- name: Install dependencies
shell: bash
run: pnpm install --frozen-lockfile
3 changes: 0 additions & 3 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@ concurrency:
cancel-in-progress: true

jobs:
setup:
uses: ./.github/workflows/setup.yml
check-dist:
needs: setup
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
Expand Down
35 changes: 0 additions & 35 deletions .github/workflows/setup.yml

This file was deleted.

7 changes: 1 addition & 6 deletions .github/workflows/sync-readme-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,8 @@ concurrency:
permissions: {}

jobs:
setup:
if: ${{ github.repository == 'andykenward/github-actions-cloudflare-pages' }}
permissions:
contents: read
uses: ./.github/workflows/setup.yml
sync:
needs: setup
if: ${{ github.repository == 'andykenward/github-actions-cloudflare-pages' }}
name: Sync action version references
runs-on: ubuntu-latest
permissions:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ concurrency:
cancel-in-progress: true

jobs:
setup:
uses: ./.github/workflows/setup.yml
test:
needs: setup
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,7 @@ concurrency:
permissions: {}

jobs:
setup:
permissions:
contents: read
uses: ./.github/workflows/setup.yml
download:
needs: setup
permissions:
contents: write
pull-requests: write
Expand Down Expand Up @@ -52,7 +47,6 @@ jobs:
body: |
This is an automated PR to update payloads.
types:
needs: setup
permissions:
contents: write
pull-requests: write
Expand Down Expand Up @@ -85,7 +79,6 @@ jobs:
body: |
This is an automated PR to update generated types.
schema:
needs: setup
permissions:
contents: write
pull-requests: write
Expand Down