Skip to content

Commit b415b00

Browse files
committed
chore: Use correct token for npm releases
1 parent fe39141 commit b415b00

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/release-it.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313

1414
jobs:
1515
release:
16-
permissions:
16+
permissions:
1717
contents: write
1818
packages: write
1919

@@ -37,22 +37,22 @@ jobs:
3737

3838
- name: Install dependencies
3939
run: yarn install --ignore-engines
40-
40+
4141
- name: Initialize Git user
4242
run: |
4343
git config --global user.email "${{ github.actor }}@users.noreply.github.com }}"
4444
git config --global user.name "${{ github.actor }}"
45-
45+
4646
- name: Initialize NPM config
4747
run: |
48-
npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
48+
npm config set //registry.npmjs.org/:_authToken $NPM_RELEASE
4949
env:
50-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
50+
NPM_RELEASE: ${{ secrets.NPM_RELEASE }}
5151

5252
- name: Make the release
5353
env:
5454
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
55+
NPM_RELEASE: ${{ secrets.NPM_RELEASE }}
5656
run: |
5757
# When all commits since the latest major tag should be added to the changelog, use --git.tagExclude='*[-]*'
5858
npx release-it ${{github.event.inputs.type}} --git.tagExclude='*[-]*' --ci --verbose

0 commit comments

Comments
 (0)