Skip to content

chore: release 1.2.0 #11

chore: release 1.2.0

chore: release 1.2.0 #11

Workflow file for this run

name: Draft Release
on:
push:
tags: ['v*']
permissions:
contents: write
jobs:
draft:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
cache: npm
- run: npm ci
- run: npm run prompt-lint
- run: npm run build
- run: npm test
- name: Create draft Release
run: gh release create "$REF_NAME" --draft --generate-notes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# 经 env 传递,避免 tag 名(含 $/`/; 等)注入 shell(CWE-78)
REF_NAME: ${{ github.ref_name }}