Skip to content

Commit

Permalink
Merge pull request #11 from ImDevinC/use-pat
Browse files Browse the repository at this point in the history
use pat
  • Loading branch information
ImDevinC committed Jan 29, 2024
2 parents e1d4a61 + 5fac325 commit 0f0e44a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/shared-bump-semver-tags.yaml
Expand Up @@ -8,6 +8,11 @@ on:
default: true
required: false
type: boolean
secrets:
PUBLISH_PAT:
description: "Personal Access Token for publishing packages"
required: true
type: string

jobs:
bump-tag-version:
Expand All @@ -29,7 +34,7 @@ jobs:
id: bump
with:
mode: bump
repo-token: ${{ secrets.GITHUB_TOKEN }}
repo-token: ${{ secrets.PUBLISH_PAT }}
minor-label: minor
major-label: major
patch-label: patch
Expand All @@ -55,4 +60,6 @@ jobs:
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
git tag -fa v${{ steps.parse.outputs.major-version }} -m "Update v${{ steps.parse.outputs.major-version }} tag"
git push origin v${{ steps.parse.outputs.major-version }} --force
git push origin v${{ steps.parse.outputs.major-version }} --force
env:
GITHUB_TOKEN: ${{ secrets.PUBLISH_PAT }}

0 comments on commit 0f0e44a

Please sign in to comment.