-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use organization’s Git user in GitHub Action workflows (#177)
- Loading branch information
Showing
2 changed files
with
14 additions
and
3 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 |
---|---|---|
|
@@ -21,7 +21,7 @@ jobs: | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].3 | ||
with: | ||
fetch-depth: 2 | ||
- name: Setup Node.js | ||
|
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ jobs: | |
permissions: write-all | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Node.js | ||
|
@@ -29,6 +29,16 @@ jobs: | |
run: yarn install | ||
- name: Build packages | ||
run: yarn turbo run build | ||
- name: Import GPG key | ||
uses: crazy-max/[email protected] | ||
with: | ||
git_commit_gpgsign: true | ||
git_user_signingkey: true | ||
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | ||
- name: Setup Git user | ||
run: | | ||
git config --global user.email [email protected] | ||
git config --global user.name org-spear-ai | ||
- name: Authenticate with NPM | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
@@ -39,7 +49,7 @@ jobs: | |
run: npm config set //npm.pkg.github.com/:_authToken=$GITHUB_TOKEN | ||
- id: changesets | ||
name: Run Changesets — Create a Release Pull Request or merge a Release Pull Request | ||
uses: changesets/[email protected].6 | ||
uses: changesets/[email protected].7 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
@@ -48,3 +58,4 @@ jobs: | |
version: yarn run version | ||
commit: Release 🚀 | ||
publish: yarn run publish-packages | ||
setupGitUser: false |