Skip to content

Commit

Permalink
chore: use token for release auth
Browse files Browse the repository at this point in the history
  • Loading branch information
florkbr committed Nov 22, 2024
1 parent b1f201c commit 0c2b77f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/actions/release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ inputs:
gh_email:
description: 'Github email'
required: true
gh_repository:
description: 'Github repository'
required: true
runs:
using: "composite"
steps:
Expand All @@ -30,6 +33,7 @@ runs:
run: |
git config user.name "${{ inputs.gh_name }}"
git config user.email "${{ inputs.gh_email }}"
git remote set-url origin https://${{ inputs.gh_token }}@github.com/${{ inputs.gh_repository }}
- name: Build
shell: bash
run: npx nx run-many -t build --exclude=demo,
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,11 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ssh-key: ${{ secrets.BOT_AUTH_KEY}}
token: ${{ secrets.GH_BOT_TOKEN }}
- uses: './.github/actions/release'
with:
gh_token: ${{ secrets.GH_BOT_TOKEN }}
npm_token: ${{ secrets.NPM_TOKEN }}
gh_name: ${{ secrets.BOT_NAME }}
gh_email: ${{ secrets.BOT_EMAIL }}
gh_repository: ${{ github.repository }}

0 comments on commit 0c2b77f

Please sign in to comment.