Skip to content

Commit b06bb4c

Browse files
chore: add npm install before npm publish (#35)
This change in the CircleCI config is needed so that compilation can occur before publishing the module.
1 parent 665b57c commit b06bb4c

File tree

1 file changed

+9
-2
lines changed
  • handwritten/nodejs-logging-winston/.circleci

1 file changed

+9
-2
lines changed

handwritten/nodejs-logging-winston/.circleci/config.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,5 +244,12 @@ jobs:
244244
name: Set NPM authentication.
245245
command: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
246246
- run:
247-
name: Publish the module to npm.
248-
command: npm publish
247+
# This is needed because `npm publish` invokes `npm prepare`
248+
# 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

Comments
 (0)