您好,我有 codepipeline 来部署我的角度应用程序,在该应用程序中我使用我的私人 github 包。一切都在本地工作等。但是在 codeBuild 上我不知道如何注册到 github 包存储库。
我的构建规范如下所示:
version: 0.2
env:
variables:
S3_BUCKET: "{{s3_bucket_url}}"
BUILD_ENV: "{{BUILD_ENV}}"
BUILD_FOLDER: "dist"
phases:
install:
runtime-versions:
nodejs: 14
pre_build:
commands:
- echo Installing source NPM dependencies...
- npm install
- npm install -g @angular/cli
build:
commands:
- echo Build started on `date` with $BUILD_ENV flag.
- ng build $BUILD_ENV
post_build:
commands:
- echo Build completed on `date`
artifacts:
files:
- '**/*'
base-directory: 'dist*'
Run Code Online (Sandbox Code Playgroud)
如果 npm install 失败,因为404 Not Found - GET https://registry.npmjs.org …