Skip to content

fix: 默认打开无头模式 #35

fix: 默认打开无头模式

fix: 默认打开无头模式 #35

Workflow file for this run

name: release
on:
push:
branches:
- main
# 赋予 release-please-action 权限
permissions:
contents: write
pull-requests: write
jobs:
# 设置 release-please 任务
release-please:
# 设置任务运行环境为 ubuntu-latest
runs-on: ubuntu-latest
steps:
# 使用 release-please-action 动作来自动创建发布 PR
- uses: googleapis/release-please-action@v4
id: release
with:
config-file: .release-please-config.json
manifest-file: .release-please-manifest.json
- name: 检出代码
uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}
# 安装 pnpm
- uses: pnpm/action-setup@v2
if: ${{ steps.release.outputs.release_created }}
with:
version: 8
# 设置 Node.js 环境
- name: 设置 Node.js 环境
uses: actions/setup-node@v4
if: ${{ steps.release.outputs.release_created }}
with:
node-version: 20
registry-url: "https://registry.npmjs.org"
# 安装依赖
- name: 安装依赖
if: ${{ steps.release.outputs.release_created }}
run: pnpm install --no-frozen-lockfile
# 构建输出
- name: 构建输出
if: ${{ steps.release.outputs.release_created }}
run: pnpm build
# 发布到 npm
- name: 发布到 npm
if: ${{ steps.release.outputs.release_created }}
run: pnpm -r publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}