diff --git a/.github/workflows/deploy-stage.yml b/.github/workflows/deploy-stage.yml index eb8ae8d..69e1297 100644 --- a/.github/workflows/deploy-stage.yml +++ b/.github/workflows/deploy-stage.yml @@ -23,7 +23,7 @@ jobs: - name: Replace token in .npmrc run: | - sed -i "s|//npm.greensock.com/:_authToken=[a-zA-Z0-9]*|//npm.greensock.com/:_authToken=${{ secrets.GSAP_TOKEN }}|" .npmrc + sed -i "s/\${GSAP_TOKEN}/${{ secrets.GSAP_TOKEN }}/g" .npmrc cat .npmrc - name: Install, build, and upload your site diff --git a/.npmrc b/.npmrc index b19f17b..5a12008 100644 --- a/.npmrc +++ b/.npmrc @@ -1,3 +1,3 @@ always-auth=true -//npm.greensock.com/:_authToken= +//npm.greensock.com/:_authToken=${GSAP_TOKEN} @gsap:registry=https://npm.greensock.com