Skip to content

Commit ec7c57a

Browse files
committed
1 parent 59a81eb commit ec7c57a

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
uses: actions/setup-node@v2
2525
with:
2626
node-version: ${{ matrix.node_version }}
27+
registry-url: 'https://registry.npmjs.org'
2728
- name: Install latest NPM
2829
run: npm install -g npm@7
2930
- name: NPM install with caching
@@ -51,12 +52,15 @@ jobs:
5152
run: npm publish --workspaces --access public
5253
env:
5354
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
54-
- name: Push CI Packages
55+
name: Setup GitHub CI Node.js environment
5556
if: github.event_name != 'pull_request' && matrix.os == 'ubuntu-latest'
56-
run: |
57-
echo "//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}" > .npmrc
58-
echo "@exceptionless:registry=https://npm.pkg.github.com" >> .npmrc
59-
echo "always-auth=true" >> .npmrc
60-
npm publish --workspaces --access public
57+
uses: actions/setup-node@v2
58+
with:
59+
node-version: ${{ matrix.node_version }}
60+
registry-url: 'https://npm.pkg.github.com'
61+
scope: '@exceptionless'
62+
- name: Push GitHub CI Packages
63+
if: github.event_name != 'pull_request' && matrix.os == 'ubuntu-latest'
64+
run: npm publish --workspaces --access public
6165
env:
6266
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)