diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e5e0ba58..cddc683a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -71,6 +71,6 @@ jobs: run: | export GITHUB_NAME=quid-bot export GITHUB_EMAIL=infratructure@quid.com - export GITHUB_TOKEN=${{ secrets.PAT }} + export PAT=${{ secrets.PAT }} export AUTOMATED_WRITE_AUTH=${{ secrets.AUTOMATED_WRITE_AUTH }} bash scripts/deploy.sh diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 3f787634..82e3da24 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -1,7 +1,7 @@ # Setup Git user for automatic deploy git config --global user.email $GITHUB_EMAIL git config --global user.name $GITHUB_NAME -git remote set-url origin https://${GITHUB_TOKEN}@github.com/quid/refraction.git +git remote set-url origin https://${PAT}@github.com/quid/refraction.git # Lerna can publish only if on master, Travis CI goes in detached state initially git checkout master