Skip to content

gh-action: use npm install #4

gh-action: use npm install

gh-action: use npm install #4

Workflow file for this run

name: Deploy Docusaurus to GitHub Pages
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
# 1. Check out the repository
- name: Check out the repository
uses: actions/checkout@v2
# 2. Set up Node.js
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 22
# 3. Install dependencies and deploy
- name: Deploy Docusaurus
run: |
cd website
npm install
GIT_USER=${{ secrets.GITHUB_ACTOR }} npm run deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}