Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
shimataro committed Oct 12, 2023
1 parent f848d33 commit b436d05
Show file tree
Hide file tree
Showing 7 changed files with 115 additions and 104 deletions.
60 changes: 30 additions & 30 deletions dist/main.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/main.js.map

Large diffs are not rendered by default.

36 changes: 18 additions & 18 deletions dist/post.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/post.js.map

Large diffs are not rendered by default.

81 changes: 42 additions & 39 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@
"license": "MIT",
"devDependencies": {
"@actions/core": "1.10.1",
"@types/node": "20.8.4",
"@types/node": "20.8.5",
"@typescript-eslint/eslint-plugin": "6.7.5",
"@typescript-eslint/parser": "6.7.5",
"esbuild": "0.19.4",
"eslint": "8.51.0",
"markdownlint-cli": "0.37.0",
"npm-check-updates": "16.14.5",
"npm-check-updates": "16.14.6",
"npm-run-all": "4.1.5",
"typescript": "5.2.2",
"yaml-lint": "1.7.0"
Expand Down
26 changes: 17 additions & 9 deletions scripts/update-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,21 @@
set -eu

DATE=$(date +"%Y%m%d")
BRANCH=feature/update-dependencies-${DATE}
COLOR_SUCCESS="\e[1;32m"
COLOR_RESET="\e[m"
BASE_BRANCH=$(git rev-parse --abbrev-ref HEAD)
TARGET_BRANCH=feature/update-dependencies-${DATE}

# create branch
git checkout develop
git checkout -b ${BRANCH}
COLOR_SUCCESS="\033[1;32m"
COLOR_ERROR="\033[1;41m"
COLOR_RESET="\033[m"

cd $(dirname ${0})/..

# create target branch
if [[ ! ${BASE_BRANCH} =~ ^v[0-9]+$ ]]; then
echo -e "${COLOR_ERROR}Error:${COLOR_RESET} Base branch must match 'v*'; got '${BASE_BRANCH}'."
exit 1
fi
git checkout -b ${TARGET_BRANCH}

# check updates
npm ci
Expand All @@ -20,7 +28,7 @@ rm -rf package-lock.json node_modules
npm i
npm dedupe

# check
# test
npm run build
npm run verify

Expand All @@ -32,7 +40,7 @@ git commit -m "update dependencies"
echo -e "
${COLOR_SUCCESS}🎉All dependencies are updated successfully.🎉${COLOR_RESET}
Push changes and merge into 'develop' branch.
Push changes and merge into '${BASE_BRANCH}' branch.
git push --set-upstream origin ${BRANCH}
git push --set-upstream origin ${TARGET_BRANCH}
"

0 comments on commit b436d05

Please sign in to comment.