Skip to content

Commit

Permalink
ci: use GitHub app to tag new release (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsanders11 authored Aug 28, 2024
1 parent ef805d4 commit 29349aa
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,24 @@ on:
description: Electron version to use with "v" prefix (e.g. v30.0.0)
required: true

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
test:
uses: ./.github/workflows/test.yml
with:
electron-version: ${{ github.event.inputs.version }}
tag_new_version:
runs-on: ubuntu-latest
environment: deps-releaser
needs: test
permissions:
contents: write # for pushing new tag
steps:
- name: Generate GitHub App token
uses: electron/github-app-auth-action@384fd19694fe7b6dcc9a684746c6976ad78228ae # v1.1.1
id: generate-token
with:
creds: ${{ secrets.DEPS_RELEASER_GH_APP_CREDS }}
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
token: ${{ steps.generate-token.outputs.token }}
# Tag here, the publish-npm.yml workflow will trigger on the new tag and do the CFA publish
- name: Push New Tag
run: |
Expand Down

0 comments on commit 29349aa

Please sign in to comment.