Skip to content

Commit

Permalink
chore: Update deploy.yml to use npm ci for installing dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
tako0614 committed Jul 30, 2024
1 parent 6ea3676 commit 8b35a56
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,19 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0 # Not needed if lastUpdated is not enabled
- uses: npm/action-setup@v3
with:
version: 8.9.2
# - uses: pnpm/action-setup@v3 # Uncomment this if you're using pnpm
# - uses: oven-sh/setup-bun@v1 # Uncomment this if you're using Bun
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache: npm # or pnpm / yarn
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Install dependencies
run: npm install
run: npm ci # or pnpm install / yarn install / bun install
- name: Build with VitePress
run: npm docs:build
run: npm run docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down

0 comments on commit 8b35a56

Please sign in to comment.