Skip to content

Commit

Permalink
workflow: use fundabot's token for main (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
Isha-Sharma authored Jul 18, 2023
1 parent 6a1ca3e commit b366a0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ jobs:

- name: Release
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token || secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ github.ref_name == 'main' && steps.generate_token.outputs.token || secrets.GITHUB_TOKEN }}
run: |
if [ "${BRANCH}" != "main" ]; then PRERELEASE="-p"; fi
echo "Releasing version ${TAG} on branch ${BRANCH}"
gh release create ${TAG} --target ${BRANCH} --generate-notes ${PRERELEASE}
- name: Push changes
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token || secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ github.ref_name == 'main' && steps.generate_token.outputs.token || secrets.GITHUB_TOKEN }}
run: git push --follow-tags --atomic --no-verify

0 comments on commit b366a0b

Please sign in to comment.