mirror of
https://github.com/shimataro/ssh-key-action.git
synced 2025-06-19 22:52:10 +10:00
Feature/scripts (#87)
* * refactor create-release-branch.sh * * refactor rebuild.sh * * refactor update-dependencies.sh
This commit is contained in:
parent
410fe0c2fb
commit
918fed51a1
3 changed files with 23 additions and 21 deletions
|
@ -1,30 +1,32 @@
|
|||
#!/bin/bash
|
||||
# update dependencies
|
||||
|
||||
set -e
|
||||
|
||||
DATE=$(date +"%Y%m%d")
|
||||
BRANCH=feature/update-dependencies-${DATE}
|
||||
COLOR_SUCCESS="\e[1;32m"
|
||||
COLOR_RESET="\e[m"
|
||||
|
||||
# create branch
|
||||
git checkout develop || exit 1
|
||||
git checkout -b ${BRANCH} || exit 1
|
||||
git checkout develop
|
||||
git checkout -b ${BRANCH}
|
||||
|
||||
# check updates
|
||||
npm ci
|
||||
npm run check-updates -- -u || exit 1
|
||||
npm run check-updates -- -u
|
||||
|
||||
# re-install packages
|
||||
rm -rf package-lock.json node_modules || exit 1
|
||||
npm i || exit 1
|
||||
rm -rf package-lock.json node_modules
|
||||
npm i
|
||||
|
||||
# build check
|
||||
npm run build || exit 1
|
||||
npm run build
|
||||
|
||||
# commit
|
||||
npm ci --only=production || exit 1
|
||||
git add package.json package-lock.json node_modules || exit 1
|
||||
git commit -m "update dependencies" || exit 1
|
||||
npm ci --only=production
|
||||
git add package.json package-lock.json node_modules
|
||||
git commit -m "update dependencies"
|
||||
|
||||
# finished!
|
||||
echo -e "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue