Commit bf83917b authored by Ilya Rassadin's avatar Ilya Rassadin
Browse files

Try to use pnpm through corepack if repo contains pnpm-lock.yaml

parent 53e5a6ee
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -76,7 +76,14 @@
    JS_BUILD_OUTPUT: new/build
    JS_NPM_SCRIPT: prod
  script:
    - npm install && npm run $JS_NPM_SCRIPT
    - |
      if [ -f pnpm-lock.yaml ]; then
        corepack enable
        corepack install -g pnpm@11
        pnpm install && pnpm run $JS_NPM_SCRIPT
      else
        npm install && npm run $JS_NPM_SCRIPT
      fi
  artifacts:
    paths:
      - "$JS_BUILD_OUTPUT/"