Skip to content

Commit

Permalink
fix actions
Browse files Browse the repository at this point in the history
  • Loading branch information
moesoha committed Dec 10, 2024
1 parent a504946 commit 3d324fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 26 deletions.
30 changes: 5 additions & 25 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: install node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18

- uses: pnpm/action-setup@v2
name: install pnpm
id: pnpm-install
with:
version: 8
run_install: false

- name: get pnpm store
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: set up pnpm cache
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
node-version: 20
cache: 'pnpm'

- name: install dependencies
run: pnpm install
Expand All @@ -48,7 +28,7 @@ jobs:
run: pnpm run build

- name: upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: help-site
path: build
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
if: needs.check.outputs.secrets == 'ok'
steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: setup python
uses: actions/setup-python@v4
Expand Down

0 comments on commit 3d324fc

Please sign in to comment.