Update docusaurus monorepo to v3.0.1 #262
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://docs.github.com/actions | |
name: Publish | |
on: | |
push: | |
permissions: | |
deployments: write | |
jobs: | |
publish: | |
name: Cloudflare Pages | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
cache: npm | |
- name: Install NPM packages | |
run: npm ci | |
- name: Run build | |
run: npm run build --if-present | |
- name: Publish to Cloudflare Pages | |
uses: cloudflare/wrangler-action@v3.3.2 | |
with: | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
command: pages deploy --project-name=${{ vars.CLOUDFLARE_PROJECT_NAME }} build |