forked from serverless-cd/ui
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathserverless-pipeline.yaml
52 lines (52 loc) · 1.99 KB
/
serverless-pipeline.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
steps:
- name: install in root
run: npm install --registry=https://registry.npmmirror.com --force
working-directory: ./
# pipeline-ui
- name: pipeline-ui install
if: ${{contains(git.ref, '@serverless-cd/pipeline-ui')}}
run: npm install --registry=https://registry.npmmirror.com --force
working-directory: ./packages/pipeline-ui
- name: pipeline-ui build
if: ${{contains(git.ref, '@serverless-cd/pipeline-ui')}}
run: npm run build
working-directory: ./packages/pipeline-ui
- name: pipeline-ui publish
if: ${{contains(git.ref, '@serverless-cd/pipeline-ui')}}
plugin: '@serverless-cd/npm-publish'
inputs:
registry: //registry.npmjs.org
token: ${{ secrets.npm_token }}
codeDir: ./packages/pipeline-ui
# dingtalk-ui
- name: dingtalk-ui install
if: ${{contains(git.ref, '@serverless-cd/dingtalk-ui')}}
run: npm install --registry=https://registry.npmmirror.com --force
working-directory: ./packages/dingtalk-ui
- name: dingtalk-ui build
if: ${{contains(git.ref, '@serverless-cd/dingtalk-ui')}}
run: npm run build
working-directory: ./packages/dingtalk-ui
- name: dingtalk-ui publish
if: ${{contains(git.ref, '@serverless-cd/dingtalk-ui')}}
plugin: '@serverless-cd/npm-publish'
inputs:
registry: //registry.npmjs.org
token: ${{ secrets.npm_token }}
codeDir: ./packages/dingtalk-ui
# trigger-ui
- name: trigger-ui install
if: ${{contains(git.ref, '@serverless-cd/trigger-ui')}}
run: npm install --registry=https://registry.npmmirror.com --force
working-directory: ./packages/trigger-ui
- name: trigger-ui build
if: ${{contains(git.ref, '@serverless-cd/trigger-ui')}}
run: npm run build
working-directory: ./packages/trigger-ui
- name: trigger-ui publish
if: ${{contains(git.ref, '@serverless-cd/trigger-ui')}}
plugin: '@serverless-cd/npm-publish'
inputs:
registry: //registry.npmjs.org
token: ${{ secrets.npm_token }}
codeDir: ./packages/trigger-ui