Skip to content

Commit

Permalink
fix(ci): fix wrong syntax and add shell
Browse files Browse the repository at this point in the history
  • Loading branch information
voice0726 committed Feb 10, 2025
1 parent 94ff065 commit 08725f2
Showing 1 changed file with 24 additions and 25 deletions.
49 changes: 24 additions & 25 deletions .github/workflows/actions/init/action.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
runs:
using: composite
steps:
name: Prepare
runs-on: ubuntu-latest
steps:
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
- name: Get pnpm store directory
id: pnpm-cache
run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}-setup-pnpm
restore-keys: |
${{ runner.os }}-pnpm-store-setup-pnpm
- name: Install dependencies
run: pnpm install
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
- name: Get pnpm store directory
id: pnpm-cache
run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
shell: bash
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}-setup-pnpm
restore-keys: |
${{ runner.os }}-pnpm-store-setup-pnpm
- name: Install dependencies
run: pnpm install
shell: bash

0 comments on commit 08725f2

Please # to comment.