Skip to content

1.0.171

1.0.171 #556

Workflow file for this run

name: npm_publish
on:
push:
branches:
- static_site
jobs:
publish-npm:
runs-on: ubuntu-latest
# Clone 仓库
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: static_site
# 安装 Node.js
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: "16"
registry-url: https://registry.npmjs.org/
# 发布 NPM 包
- name: Publish Package
run: |
git config --global user.email "zzy4on9@outlook.com"
git config --global user.name "tob"
npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}