Skip to content

Commit c986e53

Browse files
committed
Use temp token for initial pubilshing
1 parent 2e58b24 commit c986e53

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,12 @@ jobs:
7070

7171
- name: Build library
7272
run: npm run build
73-
73+
- name: Configure NPM for publishing
74+
run: |
75+
echo "//registry.npmjs.org/:_authToken=\${NODE_AUTH_TOKEN}" > ~/.npmrc
76+
npm whoami || echo "Not authenticated yet"
77+
env:
78+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
7479
- name: Publish to NPM
7580
if: github.event_name == 'release'
7681
run: |

0 commit comments

Comments
 (0)