Skip to content

Commit e21b816

Browse files
authored
Merge pull request #655 from Nosto/nosto-release-public-app
chore: migrate to github apps from PAT
2 parents 5b348a2 + 294564b commit e21b816

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ jobs:
3939
- name: Run tests
4040
run: npm test
4141

42+
- name: Create GitHub App Token
43+
id: app-token
44+
uses: actions/create-github-app-token@b96fde71c0080358ed6e2d162f11c612c92a97d1
45+
with:
46+
app-id: ${{ secrets.APP_ID }}
47+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
48+
4249
- name: Publish project
4350
uses: cycjimmy/semantic-release-action@b12c8f6015dc215fe37bc154d4ad456dd3833c90 # v6.0.0
4451
id: semantic
@@ -52,7 +59,7 @@ jobs:
5259
"master"
5360
]
5461
env:
55-
GITHUB_TOKEN: ${{ secrets.RELEASE_PAT_TOKEN }}
62+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
5663

5764
publish-docs:
5865
needs: release

0 commit comments

Comments
 (0)