-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): update release flow with new service account (#238)
- Loading branch information
Showing
1 changed file
with
13 additions
and
2 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 |
---|---|---|
|
@@ -54,14 +54,20 @@ jobs: | |
- name: 📋 Release code | ||
run: yarn semantic-release | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
GITHUB_TOKEN: ${{ secrets.EXPOBOT_GITHUB_TOKEN }} | ||
GIT_AUTHOR_NAME: Expo CI | ||
GIT_AUTHOR_EMAIL: [email protected] | ||
GIT_COMMITTER_NAME: Expo CI | ||
GIT_COMMITTER_EMAIL: [email protected] | ||
|
||
tags: | ||
needs: publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 🏗 Setup repo | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.EXPOBOT_GITHUB_TOKEN }} | ||
|
||
- name: 🏗 Setup Node | ||
uses: actions/setup-node@v3 | ||
|
@@ -70,7 +76,7 @@ jobs: | |
cache: yarn | ||
|
||
- name: 👷 Force repo to latest | ||
runs: git fetch --all && git pull | ||
run: git fetch --all && git pull | ||
|
||
- name: 📦 Install dependencies | ||
run: yarn install --frozen-lockfile | ||
|
@@ -88,6 +94,11 @@ jobs: | |
const { version } = require('./package.json') | ||
return semver.major(version) | ||
- name: 👷 Configure git | ||
run: | | ||
git config user.name "Expo CI" | ||
git config user.email "[email protected]" | ||
- name: 🧹 Clean repo | ||
run: git clean . -xdf && git reset --hard HEAD && git pull && git fetch --tags | ||
|
||
|