Skip to content

Commit

Permalink
fix: add pnpm step
Browse files Browse the repository at this point in the history
  • Loading branch information
arcs- committed Feb 22, 2024
1 parent 754655c commit 025bd92
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# Sample workflow for building and deploying a VitePress site to GitHub Pages
#
name: Deploy VitePress site to Pages
name: Publish and Deploy

on:
push:
Expand All @@ -26,6 +24,7 @@ jobs:
# Build packages and docs
build:
runs-on: ubuntu-latest
name: Build
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -43,7 +42,7 @@ jobs:
run: pnpm install
- name: Build with VitePress
run: |
pnpm build # ToDo: optimize later
pnpm build
pnpm docs:build
touch .vitepress/dist/.nojekyll
- name: Upload artifact
Expand All @@ -55,8 +54,9 @@ jobs:
publish:
runs-on: ubuntu-latest
needs: build
name: Publish
name: Publish to npm
steps:
- uses: pnpm/action-setup@v3
- name: Publish to npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand All @@ -70,7 +70,7 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: Deploy
name: Deploy Docs
steps:
- name: Deploy to GitHub Pages
id: deployment
Expand Down

0 comments on commit 025bd92

Please sign in to comment.