Skip to content

Commit c425909

Browse files
committed
fix: update how we use release it with github tokens
1 parent eecd0d3 commit c425909

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ jobs:
1414
publish_job:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v4
1818
with:
1919
fetch-depth: 0
20+
token: ${{ secrets.PAT_GITHUB }}
2021
- name: Setup Git config
2122
run: |
2223
git config --local user.email 'hello@rive.app'
@@ -39,20 +40,14 @@ jobs:
3940
name: Major Release - Bump version number, update changelog, push and tag
4041
run: npm run release:major
4142
env:
42-
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}
43-
PAT_GITHUB: ${{ secrets.PAT_GITHUB }}
4443
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4544
- if: ${{inputs.major == false && inputs.minor == true}}
4645
name: Minor release - Bump version number, update changelog, push and tag
4746
run: npm run release:minor
4847
env:
49-
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}
50-
PAT_GITHUB: ${{ secrets.PAT_GITHUB }}
5148
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5249
- if: ${{inputs.major == false && inputs.minor == false}}
5350
name: Patch release - Bump version number, update changelog, push and tag
5451
run: npm run release:patch
5552
env:
56-
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}
57-
PAT_GITHUB: ${{ secrets.PAT_GITHUB }}
5853
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)