Skip to content

Commit 327d328

Browse files
Merge pull request #34 from Atharva0506/fix/workflow-git-push-auth
ci: fix git push auth and update Node.js to 22 LTS
2 parents 790da0a + b8d691b commit 327d328

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/version-release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,10 @@ jobs:
7474
VERSION="${{ steps.get_version.outputs.version }}"
7575
git config user.name "github-actions[bot]"
7676
git config user.email "github-actions[bot]@users.noreply.github.com"
77+
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
7778
git tag -a "v$VERSION" -m "Release version $VERSION"
7879
git push origin "v$VERSION"
7980
echo "✓ Created and pushed tag v$VERSION"
80-
env:
81-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8281
8382
- name: Find and Publish Draft Release
8483
id: publish_release
@@ -161,7 +160,7 @@ jobs:
161160
- name: Setup Node.js
162161
uses: actions/setup-node@v4
163162
with:
164-
node-version: '20'
163+
node-version: '22'
165164
registry-url: 'https://registry.npmjs.org'
166165

167166
- name: Install dependencies

0 commit comments

Comments
 (0)