Skip to content

Commit

Permalink
ci: add git authors
Browse files Browse the repository at this point in the history
  • Loading branch information
joonaathaan committed Oct 18, 2024
1 parent 0eab6ff commit 1e2e53d
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ jobs:
id: release
run: |
cd ${{ matrix.folder }}
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
if [[ "${{ github.ref_name }}" == "stable" ]]; then
pnpm dlx @favware/cliff-jumper \
--name "${{ matrix.package }}" \
Expand All @@ -59,14 +61,4 @@ jobs:
fi
pnpm publish --provenance --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

- name: Configure git, commit and push!
id: commmit
if: steps.release.outcome == 'success'
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "chore: release ${{ matrix.package }}@$(pnpm version --json | jq -r '.${{ matrix.package }}') [skip ci]" || echo "No changes to commit"
git push
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

0 comments on commit 1e2e53d

Please sign in to comment.