Skip to content

Commit 07f0e08

Browse files
committed
chore: uses app to bypass branch protections
1 parent 172e85a commit 07f0e08

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.github/workflows/publish-package.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,25 @@ jobs:
3232
echo "type=$VERSION_TYPE" >> $GITHUB_OUTPUT
3333
echo "Running a $VERSION_TYPE release"
3434
35+
- name: Configure git access
36+
uses: actions/create-github-app-token@v1
37+
id: app-token
38+
with:
39+
app-id: ${{ secrets.JAM_GIT_PUSHER_APP_ID }}
40+
private-key: ${{ secrets.JAM_GIT_PUSHER_PRIVATE_KEY }}
41+
42+
- name: Checkout
43+
uses: actions/checkout@v3
44+
with:
45+
ref: "main"
46+
fetch-depth: 0
47+
token: ${{ steps.app-token.outputs.token }}
48+
49+
- name: Configure git author
50+
run: |
51+
git config user.name github-actions
52+
git config user.email github-actions@github.com
53+
3554
- name: Setup Node
3655
uses: actions/setup-node@v3
3756
with:

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,6 @@
5454
"typescript": "*",
5555
"vite": "^4.4.5",
5656
"vite-plugin-dts": "^3.5.1"
57-
}
57+
},
58+
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
5859
}

0 commit comments

Comments
 (0)