Skip to content

Commit

Permalink
Use organization’s Git user in GitHub Action workflows (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
psirenny authored Apr 22, 2024
1 parent 24b136a commit 8551231
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 13 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand All @@ -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 }}
Expand All @@ -48,3 +58,4 @@ jobs:
version: yarn run version
commit: Release 🚀
publish: yarn run publish-packages
setupGitUser: false

0 comments on commit 8551231

Please sign in to comment.