Skip to content

Merge pull request #31 from gulihong/main #12

Merge pull request #31 from gulihong/main

Merge pull request #31 from gulihong/main #12

Workflow file for this run

name: Publish to npm
on:
push:
branches: main
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v3 # 克隆代码
- name: Install Node.js
uses: actions/setup-node@v3 # 安装 Node.js
with:
node-version: lts/*
- name: Build step
run: 'npm install' # 安装依赖并打包
- name: Publish to npm
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # 调用 github 填写的 NPM_TOKEN