This commit is contained in:
parent
6645524ea8
commit
329c402d10
1 changed files with 3 additions and 3 deletions
|
@ -43,9 +43,7 @@ jobs:
|
||||||
repository="$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')"
|
repository="$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')"
|
||||||
fullrepo=https://${registry}/${repository}.git
|
fullrepo=https://${registry}/${repository}.git
|
||||||
git init
|
git init
|
||||||
git stash
|
# git pull ${fullrepo}
|
||||||
git pull ${fullrepo}
|
|
||||||
git stash pop
|
|
||||||
npm install @angular/cli
|
npm install @angular/cli
|
||||||
npm run lint
|
npm run lint
|
||||||
- name: Update version
|
- name: Update version
|
||||||
|
@ -60,7 +58,9 @@ jobs:
|
||||||
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
git config --local user.name "GitHub Actions Bot"
|
git config --local user.name "GitHub Actions Bot"
|
||||||
# git checkout -- package-lock.json package.json
|
# git checkout -- package-lock.json package.json
|
||||||
|
git stash
|
||||||
git pull
|
git pull
|
||||||
|
git stash pop
|
||||||
jq ".version = \"$new_version\"" package.json > temp.json && mv temp.json package.json
|
jq ".version = \"$new_version\"" package.json > temp.json && mv temp.json package.json
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Automated update by GitHub Actions"
|
git commit -m "Automated update by GitHub Actions"
|
||||||
|
|
Loading…
Reference in a new issue