77 description : ' Tag version to release'
88 required : true
99
10+ permissions :
11+ contents : write
12+
1013env :
1114 # Release Tag to build and publish
1215 TAG : ${{ github.event.inputs.version }}
@@ -15,16 +18,19 @@ jobs:
1518 release :
1619 runs-on : ubuntu-latest
1720 steps :
21+ - name : Generate Insomnia Automation app token
22+ id : app-token
23+ uses : actions/create-github-app-token@v2
24+ with :
25+ app-id : ${{ secrets.GHA_INSOMNIA_AUTOMATION_APP_ID }}
26+ private-key : ${{ secrets.GHA_INSOMNIA_AUTOMATION_PRIVATE_KEY }}
27+
1828 - name : Checkout code
1929 uses : actions/checkout@v6
2030 with :
2131 fetch-depth : 0
22- token : ${{ secrets.PAT_INSOMNIA_INFRA }}
23-
24- - name : Configure Git user
25- uses : Homebrew/actions/git-user-config@266845213695c3047d210b2e8fbc42ecdaf45802 # master
26- with :
27- username : ${{ (github.event_name == 'workflow_dispatch' && github.actor) || 'insomnia-infra' }}
32+ token : ${{ steps.app-token.outputs.token }}
33+ persist-credentials : true
2834
2935 - name : Setup Node
3036 uses : actions/setup-node@v6
@@ -42,10 +48,10 @@ jobs:
4248 git tag --list
4349 git remote -v
4450
45- - name : Merge version commit into master
51+ - name : Push version commit and tags
4652 run : |
47- git push origin v${{ env.TAG }}
4853 git push origin master
54+ git push origin --tags
4955
5056 - name : Create Tag and Release
5157 uses : ncipollo/release-action@440c8c1cb0ed28b9f43e4d1d670870f059653174 # v1
5662 generateReleaseNotes : true
5763 prerelease : false
5864 draft : false
65+ token : ${{ steps.app-token.outputs.token }}
0 commit comments