Skip to content

Commit dc1f7a5

Browse files
authored
use GITHUB_TOKEN (graphql#3330)
1 parent 811ba37 commit dc1f7a5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ jobs:
280280
- name: Deploy to `npm` branch
281281
run: npm run gitpublish:npm
282282
env:
283-
GH_TOKEN: ${{ secrets.GH_NPM_BRANCH_PUBLISH_TOKEN }}
283+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
284284

285285
deploy-to-deno-branch:
286286
name: Deploy to `deno` branch
@@ -316,4 +316,4 @@ jobs:
316316
- name: Deploy to `deno` branch
317317
run: npm run gitpublish:deno
318318
env:
319-
GH_TOKEN: ${{ secrets.GH_NPM_BRANCH_PUBLISH_TOKEN }}
319+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

resources/gitpublish.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ fi;
3535

3636
# Create empty directory
3737
rm -rf $BRANCH
38-
git clone -b $BRANCH -- "https://${GH_TOKEN}@github.com/graphql/graphql-js.git" $BRANCH
38+
git clone -b $BRANCH -- "https://${GITHUB_ACTOR}:${GH_TOKEN}@github.com/graphql/graphql-js.git" $BRANCH
3939

4040
# Remove existing files first
4141
rm -rf $BRANCH/**/*

0 commit comments

Comments
 (0)