mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-04 02:26:11 +08:00
24 lines
529 B
YAML
24 lines
529 B
YAML
name: Setup Node
|
|
description: Setup Node
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "20"
|
|
|
|
- name: Set Up Pnpm
|
|
uses: actions/pnpm-setup@v2
|
|
with:
|
|
version: 9.10.0
|
|
|
|
- id: pnpm-cache-dir-path
|
|
run: echo "::set-output name=dir::$(pnpm store path)"
|
|
shell: bash
|
|
|
|
- uses: actions/cache@v4
|
|
with:
|
|
path: ${{ steps.pnpm-cache-dir-path.outputs.dir }}
|
|
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
|