Skip to content

ci: use pnpm/action-setup for lint-md #11

ci: use pnpm/action-setup for lint-md

ci: use pnpm/action-setup for lint-md #11

Workflow file for this run

# Sample workflow for building and deploying an Astro site to GitHub Pages
#
# To get started with Astro see: https://docs.astro.build/en/getting-started/
#
name: Deploy Astro site to Pages
on:
# Runs on pushes targeting the default branch
push:
branches:
- v1000
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
env:
BUILD_PATH: ./docs
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: "24.2"
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Setup pnpm
uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
with:
cache: true
run_install: true
- name: Build references
run: |
pnpm \
--filter @reatom/core \
--filter @reatom/jsx \
--filter @reatom/lit \
--filter @reatom/preact \
--filter @reatom/react \
--filter @reatom/vue \
--filter @reatom/zod \
exec tsc -b tsconfig.build.json
- name: Build typedoc
run: pnpm run autodocs
- name: Build with Astro
working-directory: ${{ env.BUILD_PATH }}
run: |
pnpm exec astro build \
--site "${{ steps.pages.outputs.origin }}" \
--base "${{ steps.pages.outputs.base_path }}"
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ${{ env.BUILD_PATH }}/dist
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4