ci: add validation and release workflows
This commit is contained in:
@@ -0,0 +1,24 @@
|
|||||||
|
name: Engine CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: pnpm/action-setup@v4
|
||||||
|
with:
|
||||||
|
version: 11.19.0
|
||||||
|
- uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 22
|
||||||
|
cache: pnpm
|
||||||
|
- run: pnpm install --frozen-lockfile
|
||||||
|
- run: pnpm verify
|
||||||
|
- name: Verify committed Git distribution
|
||||||
|
run: git diff --exit-code -- dist-cli
|
||||||
|
- run: pnpm exec playwright install --with-deps chromium
|
||||||
|
- run: pnpm test:e2e
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
name: Publish engine packages
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags: ['v*']
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: pnpm/action-setup@v4
|
||||||
|
with:
|
||||||
|
version: 11.19.0
|
||||||
|
- uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 22
|
||||||
|
cache: pnpm
|
||||||
|
registry-url: https://registry.npmjs.org
|
||||||
|
- run: pnpm install --frozen-lockfile
|
||||||
|
- run: pnpm verify
|
||||||
|
- name: Verify committed Git distribution
|
||||||
|
run: git diff --exit-code -- dist-cli
|
||||||
|
- name: Publish theme
|
||||||
|
run: pnpm --dir packages/slidev-theme-easy-jyy publish --no-git-checks
|
||||||
|
env:
|
||||||
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
- name: Publish CLI
|
||||||
|
run: pnpm publish --no-git-checks
|
||||||
|
env:
|
||||||
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
Reference in New Issue
Block a user