DEV Community

Taleb
Taleb

Posted on

2 1

Amplify private npm repository

publicversion: 0.1
frontend:
  phases:
    preBuild:
      commands:
        # Monorepo going in gatsby directory
        - cd gatsby
        # Can use $VERSION_NODE_10/$VERSION_NODE_8
        - nvm use $VERSION_NODE_12
        - npx npm-cli-login -u $NPM_USER -p $NPM_PASS -e $NPM_EMAIL -r $NPM_REG
        - npm config set always-auth true
        - npm config set registry=$NPM_REG
        - yarn

    build:
      commands:
        # Can use $VERSION_NODE_10/$VERSION_NODE_8
        - nvm use $VERSION_NODE_12
        - yarn run build
  artifacts:
    baseDirectory: gatsby/public
    files:
      - '**/*'
  cache:
    paths:
      - node_modules/**/*


Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay