Skip to content

zowe-cli-plugin-deployment #3686

zowe-cli-plugin-deployment

zowe-cli-plugin-deployment #3686

Workflow file for this run

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@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 }}
- name: Configure npm
run: |
cd zowe-cli-id-federation-plugin
npm config list -l
echo "------------------------------------------------------------------------------------------"
echo "registry=https://registry.npmjs.org/" > .npmrc
echo "@zowe:registry=https://zowe.jfrog.io/zowe/api/npm/npm-release/" >> .npmrc
echo "------------------------------------------------------------------------------------------"
cat .npmrc
echo "------------------------------------------------------------------------------------------"
npm config list -l
- uses: zowe-actions/octorelease@master
with:
working-dir: zowe-cli-id-federation-plugin
dry-run: true
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 }}