Skip to content

Commit 234a137

Browse files
authored
chore/trusted publisher (#9)
1 parent 7c98900 commit 234a137

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,19 @@ jobs:
1717
id-token: write
1818

1919
steps:
20+
- name: Generate token
21+
id: generate-token
22+
uses: actions/create-github-app-token@v2
23+
with:
24+
app-id: ${{ secrets.BOT_APP_ID }}
25+
private-key: ${{ secrets.BOT_PRIVATE_KEY }}
26+
2027
- name: Checkout
2128
uses: actions/checkout@v6
2229
with:
2330
fetch-depth: 0
31+
token: ${{ steps.generate-token.outputs.token }}
32+
persist-credentials: false
2433

2534
- name: Setup Node.js
2635
uses: actions/setup-node@v6
@@ -40,4 +49,4 @@ jobs:
4049
- name: Release
4150
run: npm run release
4251
env:
43-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52+
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}

.github/workflows/tests.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
name: Node.js CI
55

66
on:
7-
push:
8-
branches: [ main ]
97
pull_request:
108
branches: [ main ]
119

0 commit comments

Comments
 (0)