We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d64c7d5 commit 2ec9bf7Copy full SHA for 2ec9bf7
.github/workflows/publish engine.yml
@@ -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