Skip to content

v3.1.0

v3.1.0 #30

Workflow file for this run

name: Node.js Package
# 触发工作流程的事件
on:
release:
types: [created]
# 按顺序运行作业
jobs:
publish-gpr:
# 指定的运行器环境
runs-on: ubuntu-latest
# 设置 node 版本
strategy:
matrix:
node-version: [14]
steps:
# 拉取 github 仓库代码
- uses: actions/checkout@v3
# 设定 node 环境
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
# 默认配置
registry-url: https://registry.npmjs.org/
# 安装依赖,相当于 npm ci
- name: Install dependencies
run: npm install
- run: npm publish
env:
# 在第三步中设置的 NPM_TOKEN
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}