mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-15 22:22:51 +00:00
31 lines
827 B
YAML
31 lines
827 B
YAML
name: Publish Engine Beta
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'release/[0-9]+.[0-9]+.[0-9]+-beta'
|
|
paths:
|
|
- 'packages/**'
|
|
|
|
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 "action@github.com"
|
|
git config --local user.name "GitHub Action"
|
|
- run: npm run pub:prerelease
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
- name: Get version
|
|
id: get_version
|
|
run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
|