Fixed issues with environment confirmation during datacenter applies #599
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: Publish CLI | |
on: push | |
env: | |
CI: true | |
jobs: | |
publish_cli: | |
name: Publish CLI | |
if: github.ref_name == 'main' || startsWith(github.ref_name, 'arcctl-') | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
clean: true | |
ref: ${{ github.ref_name }} | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Setup Deno | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: 1.38.1 | |
- run: deno task generate:npm | |
# - run: | | |
# cd build | |
# echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_PUBLISH_TOKEN }}" > .npmrc | |
# npm publish --access public | |
# GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD) npm run semantic-release |