Skip to content
Snippets Groups Projects
Commit 17edf9ea authored by psy's avatar psy
Browse files

manually install deno, is now required by rocketchat

parent 2ea073d7
No related branches found
Tags 7.2.1
No related merge requests found
Pipeline #37214 passed
...@@ -21,7 +21,10 @@ autoupdate: ...@@ -21,7 +21,10 @@ autoupdate:
- git clone --depth 1 --branch ${UPSTREAM_VERSION} https://github.com/RocketChat/Rocket.Chat rocketchat - git clone --depth 1 --branch ${UPSTREAM_VERSION} https://github.com/RocketChat/Rocket.Chat rocketchat
- NODEJS_VERSION="$(jq -r .engines.node rocketchat/package.json)" - NODEJS_VERSION="$(jq -r .engines.node rocketchat/package.json)"
- METEOR_VERSION="$(cut -d@ -f2 rocketchat/apps/meteor/.meteor/release)" - METEOR_VERSION="$(cut -d@ -f2 rocketchat/apps/meteor/.meteor/release)"
- wget -q "https://deb.nodesource.com/node_14.x/pool/main/n/nodejs/nodejs_${NODEJS_VERSION}-deb-1nodesource1_amd64.deb" -O nodejs.deb - echo "NODEJS_VERSION ${NODEJS_VERSION}"
- echo "METEOR_VERSION ${METEOR_VERSION}"
# TODO: make node_20.x depending on major node version
- wget -q "https://deb.nodesource.com/node_20.x/pool/main/n/nodejs/nodejs_${NODEJS_VERSION}-1nodesource1_amd64.deb" -O nodejs.deb
- apt-get -qq install ./nodejs.deb - apt-get -qq install ./nodejs.deb
# NodeJS < 14.9.0 did not contain corepack # NodeJS < 14.9.0 did not contain corepack
- test -e /usr/bin/corepack || npm install -g corepack - test -e /usr/bin/corepack || npm install -g corepack
...@@ -35,6 +38,14 @@ autoupdate: ...@@ -35,6 +38,14 @@ autoupdate:
- export METEOR_ALLOW_SUPERUSER=true - export METEOR_ALLOW_SUPERUSER=true
- export PATH=$PATH:/root/.meteor - export PATH=$PATH:/root/.meteor
- meteor --version - meteor --version
# TODO: we may want to make deno version dynamic
- wget -q "https://github.com/denoland/deno/releases/download/v2.1.6/deno-x86_64-unknown-linux-gnu.zip" -O deno.zip
- mkdir -p ~/.deno/bin/
- unzip -d ~/.deno/bin -o deno.zip
- chmod +x ~/.deno/bin/deno
- rm deno.zip
- export PATH=$PATH:/root/.deno/bin/
- deno --version
- cd rocketchat && YARN_CHECKSUM_BEHAVIOR=update yarn install --json && git diff yarn.lock && cd .. - cd rocketchat && YARN_CHECKSUM_BEHAVIOR=update yarn install --json && git diff yarn.lock && cd ..
# yarn build:ci uses hard-coded /tmp/dist directory for build output # yarn build:ci uses hard-coded /tmp/dist directory for build output
- cd rocketchat && yarn build:ci --env-mode=loose && cd .. && mv /tmp/dist ./build - cd rocketchat && yarn build:ci --env-mode=loose && cd .. && mv /tmp/dist ./build
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment