Skip to content

Commit 96b834a

Browse files
Merge pull request #815 from Availity/fix/deploy
refactor: try manually creating npmrc
2 parents 1a3dbef + 42b9190 commit 96b834a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,15 @@ jobs:
160160
echo "New commits created by version step"
161161
fi
162162
163+
- name: Setup NPM Auth for Yarn
164+
if: steps.changes.outputs.has_changes == 'true'
165+
run: |
166+
echo "::add-mask::${NODE_AUTH_TOKEN}"
167+
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > ~/.npmrc
168+
echo "registry=https://registry.npmjs.org/" >> ~/.npmrc
169+
163170
- name: Publish
164171
if: steps.changes.outputs.has_changes == 'true'
165-
env:
166-
YARN_NPM_AUTH_TOKEN: ${{ env.NODE_AUTH_TOKEN }}
167172
run: |
168173
yarn nx affected --target publish --parallel=1
169174

0 commit comments

Comments
 (0)