refactor(cmd): restrict bootstrap pnpm tasks to dev environment (#4370)

pull/4362/head
Amir Zarrinkafsh 2022-11-13 21:32:26 +11:00 committed by GitHub
parent ad68f33aeb
commit 3aefcdf053
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -53,8 +53,11 @@ func cmdBootstrapRun(_ *cobra.Command, _ []string) {
} }
createTemporaryDirectory() createTemporaryDirectory()
if os.Getenv("CI") != "true" {
createPNPMDirectory() createPNPMDirectory()
pnpmInstall() pnpmInstall()
}
bootstrapPrintln("Preparing /etc/hosts to serve subdomains of example.com...") bootstrapPrintln("Preparing /etc/hosts to serve subdomains of example.com...")
prepareHostsFile() prepareHostsFile()