File tree 2 files changed +12
-11
lines changed 2 files changed +12
-11
lines changed Original file line number Diff line number Diff line change 15
15
if : github.ref == 'refs/heads/master'
16
16
runs-on : ubuntu-latest
17
17
steps :
18
+ - uses : actions/create-github-app-token@v2
19
+ id : create_github_app_token
20
+ with :
21
+ app-id : ${{ secrets.GH_APP_PUSHER_ID }}
22
+ private-key : ${{ secrets.GH_APP_PUSHER_PRIVATE_KEY }}
23
+
18
24
- uses : actions/checkout@v4
19
25
with :
20
- token : ${{ secrets.GH_PAT }}
26
+ token : ${{ steps.create_github_app_token.outputs.token }}
21
27
fetch-depth : 0
22
28
23
29
- uses : actions/setup-node@v4
36
42
run : |
37
43
npx zx ./scripts/publish.mjs --version="${{ inputs.version }}"
38
44
39
- - uses : actions/create-github-app-token@v2
40
- id : create_github_app_token
41
- with :
42
- app-id : ${{ secrets.GH_APP_PUSHER_ID }}
43
- private-key : ${{ secrets.GH_APP_PUSHER_PRIVATE_KEY }}
44
45
- name : Publish release
45
46
env :
46
47
GITHUB_TOKEN : ${{ steps.create_github_app_token.outputs.token }}
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ const nextTag = `v${nextVersion}`;
8
8
9
9
echo `Publishing ${ nextVersion } on branch ${ branch } ` ;
10
10
11
- // Configure git to use the GitHub token for authentication
12
- await $ `git config --global url."https://x-access-token: ${ GITHUB_TOKEN } @github.com/".insteadOf "https://github.com/ "` ;
11
+ await $ ` git config --global user.email "contact@nango.dev"` ;
12
+ await $ `git config --global user.name "Release Bot "` ;
13
13
14
14
const tagExists = await $ `git tag -l ${ nextTag } ` ;
15
15
if ( tagExists . stdout !== '' ) {
@@ -30,14 +30,14 @@ echo`Adding file`;
30
30
await $ `git add -A package.json package-lock.json packages/**/package.json CHANGELOG.md packages/**/lib/version.ts` ;
31
31
32
32
echo `Creating commit` ;
33
- await $ `git -c user.name="Release Bot" -c user.email="contact@nango.dev" commit --allow-empty --author="Release Bot <contact@nango.dev>" -m ${ releaseMessage } ` ;
33
+ await $ `git commit --allow-empty --author="Release Bot <contact@nango.dev>" -m ${ releaseMessage } ` ;
34
34
35
35
echo `Creating tag` ;
36
- await $ `git -c user.name="Release Bot" -c user.email="contact@nango.dev" tag -a ${ nextTag } HEAD -m ${ releaseMessage } ` ;
36
+ await $ `git tag -a ${ nextTag } HEAD -m ${ releaseMessage } ` ;
37
37
38
38
echo `Pushing` ;
39
39
await $ `git push --follow-tags origin HEAD:refs/heads/${ branch } ` ;
40
- await $ `git push --tags` ;
40
+ await $ `git push --tags origin ` ;
41
41
42
42
echo `Commit pushed, publishing release...` ;
43
43
// Push GitHub release
You can’t perform that action at this time.
0 commit comments