-
Notifications
You must be signed in to change notification settings - Fork 64
63 lines (53 loc) · 2.07 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
61
62
63
name: zowe-cli-plugin-deployment
on:
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
timeout-minutes: 40
permissions: write-all
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
ref: ${{ github.ref }}
- name: Use Node.js LTS
uses: actions/setup-node@v4
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 }}
- name: Update npm configuration
run: |
cd zowe-cli-id-federation-plugin
if [ -e .npmrc ]; then
rm -f .npmrc
fi
- uses: zowe-actions/octorelease@v1
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 }}