Skip to content

Commit

Permalink
ci: use release token
Browse files Browse the repository at this point in the history
  • Loading branch information
ksm2 committed Dec 28, 2023
1 parent 9c2a7b3 commit dd0ed3a
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,31 @@ permissions:
contents: write

jobs:
validate:
release:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.release_token }}

- name: Set author in Git
run: |
git config --local user.email [email protected]
git config --local user.name bitvavo-bot
git config user.name github-actions
git config user.email [email protected]
- uses: actions/setup-node@v4
with:
node-version: ${{ env.node_version }}

- run: npm ci

- name: Bump version
run: npm version ${{ github.event.inputs.version }}

- name: Push release commit
run: git push --tags origin ${{ github.ref_name }}

- uses: ncipollo/release-action@v1
with:
tag: v${{ github.event.inputs.version }}
Expand Down

0 comments on commit dd0ed3a

Please sign in to comment.