-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: configure git for pushing to main
- Loading branch information
Showing
1 changed file
with
9 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,20 +20,19 @@ jobs: | |
cache: yarn | ||
- name: Install Dependencies | ||
run: yarn --immutable | ||
- name: Bump Versions & Publish | ||
env: | ||
GITHUB_USER: github-actions[bot] | ||
GITHUB_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com | ||
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }} | ||
- name: Configure Git | ||
run: | | ||
REMOTE_BRANCH=$(git rev-parse --abbrev-ref HEAD) | ||
git remote set-url origin "https://${GITHUB_TOKEN}:[email protected]/${GITHUB_REPOSITORY}.git" | ||
git config --local user.email "${GITHUB_EMAIL}" | ||
git config --local user.name "${GITHUB_USER}" | ||
git branch --set-upstream-to=origin/${REMOTE_BRANCH} ${REMOTE_BRANCH} | ||
yarn bump | ||
env: | ||
GITHUB_USER: github-actions[bot] | ||
GITHUB_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Bump Versions & Publish | ||
run: yarn bump | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }} | ||
- name: Publish to NPM | ||
run: | | ||
yarn config set npmAuthToken ${NODE_AUTH_TOKEN} | ||
|