-
Notifications
You must be signed in to change notification settings - Fork 63
60 lines (51 loc) · 1.99 KB
/
zowe-cli-plugin.yml
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
53
54
55
56
57
58
59
60
name: zowe-cli-plugin-deployment
on:
push:
branches: [ v2.x.x, v3.x.x ]
pull_request:
branches: [ v2.x.x, v3.x.x ]
workflow_dispatch:
jobs:
release:
if: github.event_name == 'push' && github.ref_protected
runs-on: ubuntu-latest
timeout-minutes: 40
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
ref: ${{ github.ref }}
- name: Use Node.js LTS
uses: actions/setup-node@v2
with:
node-version: 'lts/*'
- name: Install Dependencies
run: |
cd zowe-cli-id-federation-plugin
npm ci
- name: Update Dependencies
uses: zowe-actions/octorelease-script@master
with:
working-dir: zowe-cli-id-federation-plugin
script: npmUpdate
env:
GIT_COMMITTER_NAME: ${{ secrets.ZOWE_ROBOT_USER }}
GIT_COMMITTER_EMAIL: ${{ secrets.ZOWE_ROBOT_EMAIL }}
- name: Build Source
run: |
cd zowe-cli-id-federation-plugin
npm run build
npm version ${{ github.event.inputs.scope || env.DEFAULT_SCOPE }}
- uses: zowe-actions/octorelease@master
with:
working-dir: zowe-cli-id-federation-plugin
env:
GIT_COMMITTER_NAME: ${{ secrets.ZOWE_ROBOT_USER }}
GIT_COMMITTER_EMAIL: ${{ secrets.ZOWE_ROBOT_EMAIL }}
GIT_CREDENTIALS: x-access-token:${{ secrets.ZOWE_ROBOT_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
NPM_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
NPM_EMAIL: ${{ secrets.ZOWE_ROBOT_EMAIL }}