UNPKG

469 BYAMLView Raw
1name: Node.js Package
2# 监测图床分支,2020年10月后github新建仓库默认分支改为main,记得更改
3on:
4 push:
5 branches:
6 - main
7
8jobs:
9 publish-npm:
10 runs-on: ubuntu-latest
11 steps:
12 - uses: actions/checkout@v2
13 - uses: actions/setup-node@v1
14 with:
15 node-version: "12.x"
16 registry-url: https://registry.npmjs.org/
17 - run: npm publish
18 env:
19 NODE_AUTH_TOKEN: ${{secrets.npm_token}}
\No newline at end of file