Skip to content

build: 修改 rollup node 版本 #55

build: 修改 rollup node 版本

build: 修改 rollup node 版本 #55

Workflow file for this run

name: Node.js CI
on:
push:
branches:
- main
paths:
- 'package.json'
- '.github/workflows/node.js.yml'
jobs:
publish-npm:
runs-on: macos-latest
# 任务的步骤
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm run build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}