Skip to content

Commit

Permalink
use GITHUB_TOKEN (#3330)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacovCR committed Oct 25, 2021
1 parent 811ba37 commit dc1f7a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Expand Up @@ -280,7 +280,7 @@ jobs:
- name: Deploy to `npm` branch
run: npm run gitpublish:npm
env:
GH_TOKEN: ${{ secrets.GH_NPM_BRANCH_PUBLISH_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

deploy-to-deno-branch:
name: Deploy to `deno` branch
Expand Down Expand Up @@ -316,4 +316,4 @@ jobs:
- name: Deploy to `deno` branch
run: npm run gitpublish:deno
env:
GH_TOKEN: ${{ secrets.GH_NPM_BRANCH_PUBLISH_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion resources/gitpublish.sh
Expand Up @@ -35,7 +35,7 @@ fi;

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

# Remove existing files first
rm -rf $BRANCH/**/*
Expand Down

0 comments on commit dc1f7a5

Please sign in to comment.