Skip to content

Commit 2ec9bf7

Browse files
liujupingJackLian
authored andcommitted
chore: create publish engine.yml
1 parent d64c7d5 commit 2ec9bf7

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish Engine
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
publish-engine:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Setup Node.js
12+
uses: actions/setup-node@v2
13+
with:
14+
node-version: '16'
15+
registry-url: 'https://registry.npmjs.org'
16+
- run: npm install && npm run setup
17+
- run: |
18+
npm run build
19+
git config --local user.email "[email protected]"
20+
git config --local user.name "GitHub Action"
21+
- run: npm run pub
22+
env:
23+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
24+
- name: Get version
25+
id: get_version
26+
run: echo "::set-output name=version::$(node -p "require('./package.json').version")"

0 commit comments

Comments
 (0)