Skip to content

Commit

Permalink
chore: fix actions at release push (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
embbnux authored Sep 16, 2021
1 parent 1ff5f9c commit d4f96e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ jobs:
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- run: npm run publish:release -- --canary --preid=$BRANCH.$GITHUB_RUN_ID.$GITHUB_RUN_NUMBER --dist-tag=$BRANCH --yes
if: ${{ github.event_name == 'push' && github.repository == 'ringcentral/ringcentral-js' }}
if: ${{ contains(env.TAG, 'refs/heads') && github.event_name == 'push' && github.repository == 'ringcentral/ringcentral-js' }}
env:
BRANCH: ${{ steps.extract_branch.outputs.branch }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- run: npm run publish:release -- $TAG --yes
if: ${{ env.TAG != '' && !contains(env.TAG, '/') && !contains(env.TAG, '-') && github.repository == 'ringcentral/ringcentral-js' }}
env:
Expand Down

0 comments on commit d4f96e5

Please sign in to comment.