Skip to content

Commit c7eea30

Browse files
committed
chore(wip): add step to set NPM auth token
Signed-off-by: Kevin Viglucci <kviglucci@gmail.com>
1 parent 91f8d00 commit c7eea30

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,18 @@ jobs:
101101
- compile
102102
runs-on: ubuntu-latest
103103
steps:
104-
- name: Git Identity
104+
- name: Set Git Identity
105105
run: |
106106
git config --global user.name 'github-actions[bot]'
107107
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
108108
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/$GITHUB_REPOSITORY
109109
env:
110110
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
111+
112+
- name: Set NPM Token
113+
run: echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > .npmrc
114+
env:
115+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
116+
111117
- name: Publish
112118
run: yarn lerna publish from-package --yes

0 commit comments

Comments
 (0)