diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7ecd691..43920e2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,6 +17,10 @@ jobs: git config --global user.email "16225108+simwai@users.noreply.github.com" git config --global user.name "simwai" + - name: Set up Git to use PAT + run: | + git remote set-url origin https://x-access-token:${{ secrets.TOKEN }}@github.com/simwai/referral-link-inserter.git + - name: Set up Node.js uses: actions/setup-node@v2 with: @@ -30,13 +34,8 @@ jobs: - name: Create Release ZIP run: npm run-script release - env: - GITHUB_TOKEN: ${{ secrets.TOKEN }} - - name: Create Release uses: softprops/action-gh-release@v1 with: files: referral-link-inserter.zip - env: - GITHUB_TOKEN: ${{ secrets.TOKEN }}