Skip to content

Commit 936a6e4

Browse files
committed
login for gh auth
1 parent 5de9c99 commit 936a6e4

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,15 @@ jobs:
2323
node-version: 18
2424
cache: npm
2525

26+
- name: Authenticate GitHub CLI
27+
run: |
28+
echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token
29+
env:
30+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
2632
- name: Install dependencies
2733
run: |
2834
npm install
29-
env:
30-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3135
3236
- name: Publish releases
3337
env:
@@ -38,7 +42,7 @@ jobs:
3842
# CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
3943
CSC_IDENTITY_AUTO_DISCOVERY: false
4044
# This is used for uploading release assets to github
41-
GITHUB_TOKEN: ${{ secrets.TOKEN }}
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4246
run: |
4347
npm run build
4448
npm run release

0 commit comments

Comments
 (0)