Skip to content

Commit 6f4ec90

Browse files
Merge pull request #364 from supertokens/fix-cicd
chore: Update CICD config for installing node
2 parents 93083c9 + fc1c7d5 commit 6f4ec90

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.circleci/config_continue.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,16 @@ jobs:
5151
- checkout
5252
- run: apt-get install lsof
5353
- run: git config --global url."https://github.com/".insteadOf ssh://[email protected]/
54-
- run: curl -fsSL https://deb.nodesource.com/setup_16.x | bash
55-
- run: apt install -y nodejs
54+
- run: curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
55+
- run: |
56+
set +e
57+
export NVM_DIR="$HOME/.nvm"
58+
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
59+
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
60+
nvm install 16
61+
62+
echo 'export NVM_DIR="$HOME/.nvm"' >> $BASH_ENV
63+
echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $BASH_ENV
5664
- run: node --version
5765
- run: echo "127.0.0.1 localhost.org" >> /etc/hosts
5866
- run: go version

.circleci/setupAndTestWithAuthReact.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ git clone [email protected]:supertokens/supertokens-auth-react.git
4949
cd supertokens-auth-react
5050
git checkout $2
5151
npm run init
52-
(cd ./examples/for-tests && npm run link) # this is there because in linux machine, postinstall in npm doesn't work..
5352
cd ./test/server/
5453
npm i -d
5554
npm i git+https://github.com:supertokens/supertokens-node.git#$3

0 commit comments

Comments
 (0)