Skip to content

Commit aec7fd3

Browse files
committed
update token name
1 parent 5616beb commit aec7fd3

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

.github/workflows/manual-release.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
uses: actions/checkout@v4
4040
with:
4141
fetch-depth: 0
42-
token: ${{ secrets.GITHUB_TOKEN }}
42+
token: ${{ secrets.RELEASE_GITHUB_TOKEN }}
4343

4444
- name: Configure Git
4545
run: |
@@ -83,25 +83,20 @@ jobs:
8383
echo "DRY RUN: New version would be: $NEW_VERSION"
8484
git checkout -- package.json package-lock.json
8585
86-
- name: Bump version and create tag
86+
- name: Bump version and push
8787
if: ${{ !inputs.dry_run }}
8888
id: version_bump
8989
run: |
90-
NEW_VERSION=$(npm version ${{ inputs.version_type }} -m "Release %s")
90+
NEW_VERSION=$(npm version ${{ inputs.version_type }})
9191
echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT
9292
echo "New version: $NEW_VERSION"
93-
94-
- name: Push changes and tags
95-
if: ${{ !inputs.dry_run }}
96-
run: |
97-
git push origin main
98-
git push origin --tags
93+
git push --tags origin main
9994
10095
- name: Create GitHub Release
10196
if: ${{ !inputs.dry_run }}
10297
uses: actions/create-release@v1
10398
env:
104-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
99+
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
105100
with:
106101
tag_name: ${{ steps.version_bump.outputs.new_version }}
107102
release_name: Release ${{ steps.version_bump.outputs.new_version }}

0 commit comments

Comments
 (0)