Skip to content

build: 修改 CI 配置 #2

build: 修改 CI 配置

build: 修改 CI 配置 #2

Workflow file for this run

name: Build CI
on:
push:
branches:
- main
paths:
- 'package.json'
- '.github/workflows/build.yml'
jobs:
publish-npm:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.17.0
registry-url: https://registry.npmjs.org/
- run: corepack enable
- shell: bash
name: Log yarn version
run: yarn -v
- name: Install
run: YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn
- name: Build
- run: npm run build

Check failure on line 30 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

You have an error in your yaml syntax on line 30
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}