Skip to content

refactor: 移除 puppeteer 依赖,提高响应速度 #15

refactor: 移除 puppeteer 依赖,提高响应速度

refactor: 移除 puppeteer 依赖,提高响应速度 #15

Workflow file for this run

name: Release
on:
pull_request:
branches: [main]
types: [closed]
workflow_dispatch:
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9.6.0
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'pnpm'
- run: pnpm install
- run: pnpm build
- uses: changesets/action@v1
with:
publish: npm publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}