chore: update GitHub Actions workflow to use GitHub token

- Replaced the usage of secrets.GH_TOKEN with github.token in onPushToMain.yml for improved security and access management during the release process.
This commit is contained in:
Mauricio Siu
2026-04-15 21:13:21 -06:00
parent edb0e37890
commit edb15fd6cf

View File

@@ -12,8 +12,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN }}
- uses: pnpm/action-setup@v6
with:
@@ -43,7 +41,7 @@ jobs:
echo "tag=v$package_version" >> $GITHUB_OUTPUT
fi
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GH_TOKEN: ${{ github.token }}
- name: Create Github Release
if: steps.version-check.outputs.skipped == 'false'
@@ -52,7 +50,7 @@ jobs:
name: ${{ steps.version-check.outputs.tag }}
tag: ${{ steps.version-check.outputs.tag }}
commit: ${{ github.ref_name }}
token: ${{ secrets.GH_TOKEN }}
token: ${{ github.token }}
skipIfReleaseExists: true
- name: Publish to npm