Skip to content

Commit

Permalink
chore(versioning): update GitHub Actions workflow for versioning and …
Browse files Browse the repository at this point in the history
…permissions

- Modified the versioning workflow to use a personal access token (PAT) instead of the default GITHUB_TOKEN for enhanced permissions.
- Added explicit permissions for contents and pull requests to improve workflow capabilities.
- Ensured the environment variable GITHUB_TOKEN is now set to the PAT for better access during versioning steps.
  • Loading branch information
devaryakjha committed Dec 25, 2024
1 parent 1f0e539 commit 31591fb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/versioning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@ on:

jobs:
publish:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.PAT_TOKEN }}
fetch-depth: 0
fetch-tags: true

Expand All @@ -35,10 +38,9 @@ jobs:
run-versioning-prerelease: true
create-pr: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
PUB_CREDENTIALS: ${{ secrets.CREDENTIALS_JSON }}

# Fixed tagging command
- name: Create Git Tags
run: |
melos version --yes --no-git-tag-version --prerelease
Expand Down

0 comments on commit 31591fb

Please sign in to comment.