From 8551231ee1f35da0bb67fb84629200d3a2ab71f7 Mon Sep 17 00:00:00 2001 From: Dennis Torres Date: Mon, 22 Apr 2024 05:33:27 -0400 Subject: [PATCH] =?UTF-8?q?Use=20organization=E2=80=99s=20Git=20user=20in?= =?UTF-8?q?=20GitHub=20Action=20workflows=20(#177)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/check.yaml | 2 +- .github/workflows/release.yaml | 15 +++++++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 75438eda..169ed1ad 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -21,7 +21,7 @@ jobs: TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} steps: - name: Checkout repository - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4.1.3 with: fetch-depth: 2 - name: Setup Node.js diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 2c777751..a37a0d05 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -17,7 +17,7 @@ jobs: permissions: write-all steps: - name: Checkout repository - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4.1.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/ghaction-import-gpg@v6.1.0 + 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 org@spear.ai + 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/action@v1.4.6 + uses: changesets/action@v1.4.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