Amplify private npm repository

github logo ・1 min read

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/**/*


twitter logo DISCUSS
Classic DEV Post from Jan 10

What should production CSS look like? Share your layout-to-web workflow

How does I write good CSS?

Taleb profile image
I make things simple using python. Love to teach and learn.