Skip to content

Commit

Permalink
chore: create publish engine.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
liujuping authored Dec 13, 2023
1 parent d64c7d5 commit 264a038
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/publish engine.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish Engine

on:
workflow_dispatch:

jobs:
publish-engine:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
registry-url: 'https://registry.npmjs.org'
- run: npm install && npm run setup
- run: |
npm run build
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
- run: npm run pub
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Get version
id: get_version
run: echo "::set-output name=version::$(node -p "require('./package.json').version")"

0 comments on commit 264a038

Please sign in to comment.