Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 13 additions & 22 deletions .github/workflows/deploy-github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,43 +9,34 @@ permissions:
contents: read

jobs:
setup:
name: Setup environment
runs-on: ubuntu-latest
steps:
- name: Installing node.js
uses: actions/setup-node@v1 # Used to install node environment
with:
node-version: "10.x"

run-documentation:
name: Run documentation
runs-on: ubuntu-latest
needs: setup # Need to wait for setup
permissions:
contents: write
steps:
- uses: actions/checkout@v1 # Get last commit pushed
- uses: actions/checkout@v4

- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: pnpm/action-setup@v6
name: Install pnpm
with:
version: 11.2.2

- uses: actions/cache@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
node-version-file: .nvmrc
cache: pnpm
cache-dependency-path: pnpm-lock.yaml

- name: Install dependencies
run: yarn install
run: pnpm install --frozen-lockfile

- name: Run documentation create
run: yarn docusaurus:generate
run: pnpm run docusaurus:generate

- name: Run docusaurus build
run: yarn docusaurus:build
run: pnpm run docusaurus:build

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"scripts": {
"dev": "pnpm docusaurus:start",
"build": "rm -rf dist/; npm run generate-index; tsup",
"prepublishOnly": "yarn build",
"prepublishOnly": "pnpm run build",
"test:ci": "jest --no-cache",
"test:clear": "jest --clearCache",
"docusaurus": "docusaurus",
Expand Down
Loading