Files
windyChenUtils/.gitea/workflows/build.yaml
T
windychen 545ed62ce1
Node.js Build / build (push) Failing after 49s
chore: 验证完成,还原工作流
2026-05-29 15:04:06 +08:00

28 lines
661 B
YAML

name: Node.js Build
on:
push:
branches: [ "main", "master" ]
pull_request:
branches: [ "main", "master" ]
jobs:
build:
runs-on: docker # 匹配你 runner 的标签
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: npm i # 或 npm install
- name: Run build
run: npm run build
- name: Setup npm for Verdaccio
run: |
npm config set registry http://verdaccio:4873/
npm config set //verdaccio:4873/:_authToken ${{ secrets.NPM_TOKEN }}
- name: Publish package
run: npm publish