Secrets SDK Publish #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Secrets SDK Publish | |
"on": | |
workflow_dispatch: | |
jobs: | |
publish: | |
name: Publish | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: packages/secrets | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
check-latest: true | |
cache: npm | |
- name: Install dependencies | |
run: npm ci --ignore-scripts | |
- name: Build source | |
run: npm run build:ts | |
- name: Publish | |
run: | | |
sed -i "s/\"private\": true/\"private\": false/" package.json | |
npx -y npm-cli-login | |
#npm publish --access public | |
npm dist-tag add @zowe/secrets-for-zowe-sdk@$(cat package.json | jq -r .version) zowe-v2-lts | |
npm dist-tag add @zowe/secrets-for-zowe-sdk@$(cat package.json | jq -r .version) latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_USER: ${{ secrets.ARTIFACTORY_USERNAME }} | |
NPM_PASS: ${{ secrets.ARTIFACTORY_PASSWORD }} | |
NPM_EMAIL: ${{ secrets.ZOWE_ROBOT_EMAIL }} | |
NPM_REGISTRY: "https://zowe.jfrog.io/zowe/api/npm/npm-local-release" | |
NPM_SCOPE: "@zowe" |