Skip to content
Closed
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
11 changes: 2 additions & 9 deletions .github/module-cache/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,14 @@ inputs:
runs:
using: 'composite'
steps:
- name: Get pnpm version from package.json
id: get-pnpm-version
run: |
node -e "const p=require('./package.json').packageManager||''; const v=(p.split('@')[1]||'10'); console.log('pnpm-version='+v)" >> $GITHUB_OUTPUT
shell: bash

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: ${{ steps.get-pnpm-version.outputs.pnpm-version }}

- name: Setup node
uses: actions/setup-node@v5
with:
node-version: ${{ inputs.node-version }}
cache: 'pnpm'

- name: Install dependencies
run: |
pnpm config set auto-install-peers false
Expand Down
14 changes: 4 additions & 10 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Deploy to GitHub Pages

on:
pull_request:
branches:
- main
push:
branches:
- main
Expand All @@ -14,18 +17,14 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup pnpm
uses: pnpm/action-setup@v6
with:
version: 11
cache: true
- name: Setup Node, install dependencies, and cache node modules, build dist artifacts
uses: ./.github/build-artifacts
with:
node-version: ${{ matrix.node }}

deploy:
needs: build
if: github.event_name == 'push'
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -34,11 +33,6 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup pnpm
uses: pnpm/action-setup@v6
with:
version: 11
cache: true
# Set up GitHub Actions caching for Wireit.
# - uses: google/wireit@setup-github-actions-caching/v2

Expand Down
Loading