chore(deps): update docs dependencies (main) #7468
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
--- | |
name: CI | |
env: | |
CI: true | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node-version: [18] | |
os: [ubuntu-latest] | |
timeout-minutes: 10 | |
name: Lint on Node.js ${{ matrix.node-version }} | |
steps: | |
- name: Checkout codes | |
uses: actions/checkout@v4 | |
- name: Enable corepack | |
run: corepack enable | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Building | |
run: pnpm build | |
- name: Linting | |
run: pnpm lint | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node-version: [18] | |
os: [ubuntu-latest] | |
timeout-minutes: 10 | |
name: Build on Node.js ${{ matrix.node-version }} | |
steps: | |
- name: Checkout codes | |
uses: actions/checkout@v4 | |
- name: Enable corepack | |
run: corepack enable | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Building | |
run: pnpm build | |
- name: Cache dist | |
uses: actions/cache@v4 | |
with: | |
path: dist | |
key: ${{ matrix.os }}-node-v${{ matrix.node-version }}-${{ github.sha }} | |
test: | |
needs: | |
- build | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node-version: [18] | |
os: [ubuntu-latest] | |
timeout-minutes: 25 | |
name: Test on Node.js ${{ matrix.node-version }} | |
steps: | |
- name: Checkout codes | |
uses: actions/checkout@v4 | |
- name: Enable corepack | |
run: corepack enable | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Install Playwright | |
run: pnpm playwright-core install chromium | |
- name: Restore dist cache | |
uses: actions/cache@v4 | |
with: | |
path: dist | |
key: ${{ matrix.os }}-node-v${{ matrix.node-version }}-${{ github.sha }} | |
- name: Testing | |
run: pnpm test | |
edge-release: | |
needs: | |
- lint | |
- build | |
- test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node-version: [18] | |
os: [ubuntu-latest] | |
steps: | |
- name: Checkout codes | |
uses: actions/checkout@v4 | |
- name: Enable corepack | |
run: corepack enable | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Restore dist cache | |
uses: actions/cache@v4 | |
with: | |
path: dist | |
key: ${{ matrix.os }}-node-v${{ matrix.node-version }}-${{ github.sha }} | |
- name: Release Edge | |
if: | | |
github.event_name == 'push' && | |
!startsWith(github.event.head_commit.message, '[skip-release]') && | |
!startsWith(github.event.head_commit.message, 'chore') && | |
!startsWith(github.event.head_commit.message, 'docs') | |
run: ./scripts/release-edge.sh | |
env: | |
NPM_TOKEN: ${{secrets.NPM_TOKEN}} |