Skip to content

fix: 修改位置

fix: 修改位置 #1

Workflow file for this run

name: Release
on:
push:
branches: [master]
permissions:
contents: write
issues: write
pull-requests: write
packags: write

Check failure on line 11 in .github/workflows/release.yaml

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yaml (Line: 11, Col: 3): Unexpected value 'packags'
id-token: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: 签出代码
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- name: 安装 nodejs
uses: actions/[email protected]
with:
node-version: "20.8.1"
- name: 构建 dist
run: |
npm install -g pnpm@latest-8
pnpm install --no-frozen-lockfile
pnpm run build
- name: 发布 npm 包
env:
GITHUB_TOKEN: ${{ secrets.PUBLISH_GH_TOKEN }}
NPM_TOKEN: ${{ secrets.PUBLISH_NPM_TOKEN }}
run: |
npm cache clean --force
npx semantic-release