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.
- package/.circleci/config.yml +18 -1
- package/package.json +1 -1
package/.circleci/config.yml
CHANGED
|
@@ -2,9 +2,26 @@ version: 2
|
|
|
2
2
|
jobs:
|
|
3
3
|
build:
|
|
4
4
|
docker:
|
|
5
|
-
- image:
|
|
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
|