File tree Expand file tree Collapse file tree 1 file changed +20
-13
lines changed
Expand file tree Collapse file tree 1 file changed +20
-13
lines changed Original file line number Diff line number Diff line change @@ -32,31 +32,38 @@ jobs:
3232 echo "type=$VERSION_TYPE" >> $GITHUB_OUTPUT
3333 echo "Running a $VERSION_TYPE release"
3434
35- - name : Checkout
36- uses : actions/checkout@v3
37- with :
38- ref : " main"
39- fetch-depth : 0
40- token : ${{ secrets.GITHUB_TOKEN }}
41-
4235 - name : Setup Node
4336 uses : actions/setup-node@v3
4437 with :
4538 node-version : " 18.15"
4639 cache : " yarn"
4740 registry-url : " https://registry.npmjs.org"
4841
42+ - name : Configure git access
43+ uses : actions/create-github-app-token@v1
44+ id : app-token
45+ with :
46+ app-id : ${{ secrets.JAM_GIT_PUSHER_APP_ID }}
47+ private-key : ${{ secrets.JAM_GIT_PUSHER_PRIVATE_KEY }}
48+
49+ - name : Checkout
50+ uses : actions/checkout@v3
51+ with :
52+ ref : " main"
53+ fetch-depth : 0
54+ token : ${{ steps.app-token.outputs.token }}
55+
56+ - name : Configure git author
57+ run : |
58+ git config user.name github-actions
59+ git config user.email github-actions@github.com
60+
4961 - name : Install dependencies
5062 run : yarn install --frozen-lockfile --non-interactive
5163
5264 - name : Build
5365 run : yarn build
5466
55- - name : Configure Git
56- run : |
57- git config --local user.email "action@github.com"
58- git config --local user.name "GitHub Action"
59-
6067 - name : Tag release
6168 id : bump-version
6269 env :
7178 git tag v$NEW_VERSION
7279 git push --tags origin main
7380
74- - name : Create GitHub Release
81+ - name : Create a GitHub Release
7582 uses : actions/create-release@v1
7683 env :
7784 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments