diff --git a/.platform.app.yaml b/.platform.app.yaml index 1130b70e63..dd60cd361c 100644 --- a/.platform.app.yaml +++ b/.platform.app.yaml @@ -96,6 +96,13 @@ hooks: build: | set -e + unset NPM_CONFIG_PREFIX + curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | dash + export NVM_DIR="$HOME/.nvm" + [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" + nvm current + nvm install 10.15.3 + # Configure GITHUB token if set. For use if you have own private repos, or to avoid API rate limits. if [ -n "$GITHUB_TOKEN" ]; then composer config github-oauth.github.com $GITHUB_TOKEN @@ -108,6 +115,10 @@ hooks: # Note: Http traffic is paused while this is running, so for prod code this should finish as fast as possible, < 30s deploy: | set -e + + unset NPM_CONFIG_PREFIX + command -v nvm && nvm use 10.15.3 + # Mainly relevant for eZ Platform demo usage, for own setup adapt this or remove and rely on migrations. if [ ! -f web/var/.platform.installed ]; then # To workaround issues with p.sh Varnish we clear container cache & temporary set Symfony Proxy diff --git a/package.json b/package.json index ea661ba4fe..12321cbb68 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "devDependencies": { "@babel/preset-react": "^7.0.0", - "@symfony/webpack-encore": "^0.22.4", + "@symfony/webpack-encore": "^0.28.0", "node-sass": "^4.11.0", "sass-loader": "^7.0.1" }