Skip to content

Commit

Permalink
Only publish the npm package api-augment to latest on full releases (#…
Browse files Browse the repository at this point in the history
…1777)

# Goal
The goal of this PR is to update CI publishing of Api-Augment on RC
releases.

Closes #1776
  • Loading branch information
wilwade authored Nov 13, 2023
1 parent d1111d9 commit 8f328ec
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1031,8 +1031,17 @@ jobs:
run: npm version --new-version "${{env.NEW_RELEASE_TAG}}" --no-git-tag-version
working-directory: js/api-augment/dist
- name: Release on NPM @latest
if: env.TEST_RUN != 'true'
if: env.TEST_RUN != 'true' &&
steps.is-full-release.outputs.is-full-release == 'true'
run: npm publish --tag latest --access public
working-directory: ./js/api-augment/dist
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
- name: Release Candidate on NPM
if: env.TEST_RUN != 'true' &&
steps.is-full-release.outputs.is-full-release != 'true'
run: npm publish --access public
working-directory: ./js/api-augment/dist
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}

0 comments on commit 8f328ec

Please sign in to comment.