Skip to content

Commit

Permalink
fix: merge steps
Browse files Browse the repository at this point in the history
  • Loading branch information
arcs- committed Feb 22, 2024
1 parent 025bd92 commit 65334d4
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,28 +40,20 @@ jobs:
uses: actions/configure-pages@v4
- name: Install dependencies
run: pnpm install
- name: Build with VitePress
- name: Build
run: |
pnpm build
pnpm docs:build
touch .vitepress/dist/.nojekyll
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: .vitepress/dist

# Publish packages
publish:
runs-on: ubuntu-latest
needs: build
name: Publish to npm
steps:
- uses: pnpm/action-setup@v3
- name: Publish to npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
pnpm -r publish --no-git-checks
pnpm -r publish --no-git-checks
- name: Upload docs artifact
uses: actions/upload-pages-artifact@v3
with:
path: .vitepress/dist

# Docs deployment
docs:
Expand Down

0 comments on commit 65334d4

Please sign in to comment.