Skip to content

Commit

Permalink
Install npm@6 in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnwalraven committed Jun 11, 2018
1 parent e4164c8 commit 1af0577
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
version: 2

# Reusable Snippets!
#
# These are re-used by the various tests below, to avoid repetition.
#
run_install_desired_npm: &run_install_desired_npm
run:
name: Install npm@6
command: sudo npm install -g npm@6

# These are the steps used for each version of Node which we're testing
# against. Thanks to YAMLs inability to merge arrays (though it is able
# to merge objects), every version of Node must use the exact same steps,
# or these steps would need to be repeated in a version of Node that needs
# something different. Probably best to avoid that, out of principle, though.
common_test_steps: &common_test_steps
steps:
- *run_install_desired_npm
- checkout
- run: npm --version
- run: npm install
Expand Down

0 comments on commit 1af0577

Please sign in to comment.