-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding build script to set nvm and npm into a single context when run…
…ning the build. Using application's meta storage to pass branches between `branch` and `release` commands. Adjusting release branches cleanup to make sure not to cleanup the default branch from the product's repo.
- Loading branch information
1 parent
13b8d0d
commit 31f9639
Showing
4 changed files
with
46 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
#! /bin/bash | ||
#!/bin/bash | ||
|
||
source ~/.nvm/nvm.sh | ||
nvm use | ||
|
||
case $1 in | ||
pnpm) echo 'pnpm' | ||
nvm use && pnpm install && pnpm run build | ||
pnpm) | ||
pnpm install && pnpm run build | ||
;; | ||
npm) echo 'npm' | ||
nvm use && npm install && npm run build | ||
npm) | ||
npm install && npm run build | ||
;; | ||
*) echo 'default' | ||
nvm use && $1 | ||
*) | ||
eval $1 | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters