newspack-scripts 4.3.8-alpha.1 → 4.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,9 +2,26 @@ version: 2
2
2
  jobs:
3
3
  build:
4
4
  docker:
5
- - image: 'circleci/node:latest'
5
+ - image: "circleci/node:latest"
6
6
  steps:
7
7
  - checkout
8
+ - run:
9
+ name: Install nvm and use the node version defined in .nvmrc
10
+ command: |
11
+ # https://support.circleci.com/hc/en-us/articles/360051656632-Swap-node-version-on-CircleCI-convenience-image
12
+ set +e
13
+ wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
14
+ export NVM_DIR="$HOME/.nvm"
15
+ [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
16
+ [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
17
+ nvm install
18
+ nvm use
19
+ # https://stackoverflow.com/a/61823737/3772847
20
+ NODE_DIR=$(dirname $(which node))
21
+ echo "export PATH=$NODE_DIR:\$PATH" >> $BASH_ENV
22
+ - run:
23
+ name: Check node version (should match the version set in project's .nvmrc file)
24
+ command: node --version
8
25
  - run:
9
26
  name: install
10
27
  command: npm install
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "newspack-scripts",
3
- "version": "4.3.8-alpha.1",
3
+ "version": "4.3.8",
4
4
  "description": "",
5
5
  "bin": {
6
6
  "newspack-scripts": "./bin/newspack-scripts.js"