Skip to content

Commit

Permalink
update: github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sujjeee committed Aug 21, 2024
1 parent 4c05e7e commit 85f1a3f
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/code-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,30 +27,31 @@ jobs:
runs-on: ubuntu-latest
name: Publish
steps:
- uses: actions/checkout@v3
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: "https://registry.npmjs.org"

- uses: pnpm/action-setup@v2.2.4
name: Install pnpm
- name: Install pnpm
uses: pnpm/action-setup@v3
id: pnpm-install
with:
version: 8.11.0
version: 9.0.6
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
Expand Down

0 comments on commit 85f1a3f

Please sign in to comment.