Skip to content

Add parameter --target-env to installCatalog action (#407) #137

Add parameter --target-env to installCatalog action (#407)

Add parameter --target-env to installCatalog action (#407) #137

Workflow file for this run

name: Publish Npm Package
on:
push:
tags:
# trigger publish builds via npm run trigger-pkg-release (requires push tags permissions to origin)
- "rc*"
jobs:
build_publish:
runs-on: ubuntu-latest
permissions:
packages: write # npm publish
contents: write # git push tags
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: main
lfs: false
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: "https://npm.pkg.github.com"
- name: Setup git tag committer info for set-version
run: |
git config --global user.name "DPX Tools Team"
git config --global user.email "capisvaatdev@microsoft.com"
- name: Build
run: |
npm i -g npm@8.19.4
npm ci
npm run set-version
npm run dist
env:
AZ_DevOps_Read_PAT: ${{ secrets.AZ_DevOps_Read_PAT }}
- name: Publish
run: |
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}