File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 24
24
uses : actions/setup-node@v2
25
25
with :
26
26
node-version : ${{ matrix.node_version }}
27
+ registry-url : ' https://registry.npmjs.org'
27
28
- name : Install latest NPM
28
29
run : npm install -g npm@7
29
30
- name : NPM install with caching
@@ -51,12 +52,15 @@ jobs:
51
52
run : npm publish --workspaces --access public
52
53
env :
53
54
NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
54
- - name : Push CI Packages
55
+ name : Setup GitHub CI Node.js environment
55
56
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
61
65
env :
62
66
NODE_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
You can’t perform that action at this time.
0 commit comments