File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments