forked from benweet/stackedit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-npm.sh
39 lines (32 loc) · 875 Bytes
/
build-npm.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
npm i --force
git config user.name "GoCD Automation"
git config user.email "[email protected]"
# Clear anything that's out of place.
git stash
cd src
npm version patch
version=$(npm version --json | jq '.["ngx-stackedit"]' | tr -d '"')
cd ..
npm run versionset
git add src/package.json
git commit -m "⚛ Bump version"
echo "extracted version: $version"
# npm i \
# @angular/animations@15 \
# @angular/cdk@15 \
# @angular/common@15 \
# @angular/compiler@15 \
# @angular/core@15 \
# @angular/forms@15 \
# @angular/material@15 \
# @angular/platform-browser@15 \
# @angular/platform-browser-dynamic@15 \
# @angular/service-worker@15 \
# @angular-devkit/build-angular@15 \
# @angular/cli@15 \
# @angular/compiler-cli@15 \
# --force
npm run build
git push
git tag "v$version"
git push origin "v$version"