mirror of
https://github.com/go-gitea/gitea.git
synced 2026-07-03 13:05:17 +02:00
- bump ci, flake and `@types/node` to node 26 - regenerate flake.lock which is needed for that package - refactor workflow to use shared composite action
23 lines
643 B
YAML
23 lines
643 B
YAML
name: node-setup
|
|
description: Set up pnpm and node and restore caches
|
|
|
|
inputs:
|
|
cache:
|
|
description: Cache pnpm downloads
|
|
default: "true"
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
|
|
- if: ${{ inputs.cache == 'true' }}
|
|
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
|
with:
|
|
node-version: 26
|
|
cache: pnpm
|
|
cache-dependency-path: pnpm-lock.yaml
|
|
- if: ${{ inputs.cache != 'true' }}
|
|
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
|
with:
|
|
node-version: 26
|