We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
npm install
npm publish
1 parent 665b57c commit b06bb4cCopy full SHA for b06bb4c
handwritten/nodejs-logging-winston/.circleci/config.yml
@@ -244,5 +244,12 @@ jobs:
244
name: Set NPM authentication.
245
command: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
246
- run:
247
- name: Publish the module to npm.
248
- command: npm publish
+ # This is needed because `npm publish` invokes `npm prepare`
+ # that invokes `npm run compile` to build the Javascript code.
249
+ # However, compilation cannot succeed if the build tools have
250
+ # not been installed.
251
+ name: Install modules and dependencies.
252
+ command: npm install
253
+ - run:
254
+ name: Publish the module to npm.
255
+ command: npm publish
0 commit comments