Vben
1 month ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
14 changed files with 99 additions and 104 deletions
-
40.github/actions/setup-node/action.yml
-
25.github/workflows/build.yml
-
19.github/workflows/changeset-version.yml
-
52.github/workflows/ci.yml
-
17.github/workflows/deploy.yml
-
2.github/workflows/draft.yml
-
6.github/workflows/issue-close-require.yml
-
11.github/workflows/issue-labeled.yml
-
2.github/workflows/lock.yml
-
8.github/workflows/release-tag.yml
-
16.github/workflows/semantic-pull-request.yml
-
2.github/workflows/stale.yml
-
2.node-version
-
1internal/lint-configs/commitlint-config/index.mjs
@ -0,0 +1,40 @@ |
|||||
|
name: "Setup Node" |
||||
|
|
||||
|
description: "Setup node and pnpm" |
||||
|
|
||||
|
runs: |
||||
|
using: "composite" |
||||
|
steps: |
||||
|
- name: Install pnpm |
||||
|
uses: pnpm/action-setup@v4 |
||||
|
|
||||
|
- name: Install Node.js |
||||
|
uses: actions/setup-node@v4 |
||||
|
with: |
||||
|
node-version-file: .node-version |
||||
|
cache: "pnpm" |
||||
|
|
||||
|
- name: Get pnpm store directory |
||||
|
shell: bash |
||||
|
run: | |
||||
|
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV |
||||
|
|
||||
|
- uses: actions/cache@v4 |
||||
|
name: Setup pnpm cache |
||||
|
if: ${{ github.ref_name == 'main' }} |
||||
|
with: |
||||
|
path: ${{ env.STORE_PATH }} |
||||
|
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} |
||||
|
restore-keys: | |
||||
|
${{ runner.os }}-pnpm-store- |
||||
|
|
||||
|
- uses: actions/cache/restore@v4 |
||||
|
if: ${{ github.ref_name != 'main' }} |
||||
|
with: |
||||
|
path: ${{ env.STORE_PATH }} |
||||
|
key: | |
||||
|
${{ runner.os }}-pnpm-store- |
||||
|
|
||||
|
- name: Install dependencies |
||||
|
shell: bash |
||||
|
run: pnpm install --frozen-lockfile |
@ -1 +1 @@ |
|||||
20 |
|
||||
|
20.14.0 |
Write
Preview
Loading…
Cancel
Save
Reference in new issue