Skip to content

Commit a3c0a89

Browse files
chore(ci): adjust authentication
1 parent 30150d1 commit a3c0a89

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.fernignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
# Specify files that shouldn't be modified by Fern
2+
.github/workflows/ci.yml

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,18 @@ jobs:
3737
- name: Checkout repo
3838
uses: actions/checkout@v3
3939
- name: Set up node
40-
uses: actions/setup-node@v3
40+
uses: actions/setup-node@v4
41+
with:
42+
registry-url: 'https://registry.npmjs.org'
43+
scope: '@speechify'
44+
token: ${{ secrets.NPM_TOKEN }}
4145
- name: Install dependencies
4246
run: yarn install
4347
- name: Build
4448
run: yarn build
4549

4650
- name: Publish to npm
4751
run: |
48-
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
4952
if [[ ${GITHUB_REF} == *alpha* ]]; then
5053
npm publish --access public --tag alpha
5154
elif [[ ${GITHUB_REF} == *beta* ]]; then
@@ -54,4 +57,4 @@ jobs:
5457
npm publish --access public
5558
fi
5659
env:
57-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
60+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)