File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : CI
2- on : [push]
2+ on :
3+ push :
4+ branches-ignore : ["npm-version/*"]
5+ pull_request :
6+ types : [opened]
7+ branches : ["npm-version/*"]
38jobs :
49 test :
510 name : Run tests
Original file line number Diff line number Diff line change @@ -12,10 +12,12 @@ npm version $VERSION --no-git-tag-version --workspaces
1212npm publish --workspaces --access=public
1313
1414# create a branch and push it to github
15- git checkout -b update-version-$VERSION
15+ BRANCH_NAME=npm-version/$VERSION
16+
17+ git checkout -b $BRANCH_NAME
1618git add .
1719git commit -m " Release $VERSION "
18- git push origin update-version- $VERSION
20+ git push origin $BRANCH_NAME
1921
2022# create a PR
21- gh pr create --title " Update ES packages version to $VERSION " --body " Update version to $VERSION " --base main --head update-version- $VERSION
23+ gh pr create --title " Update ES packages version to $VERSION " --body " Update version to $VERSION " --base main --head $BRANCH_NAME
You can’t perform that action at this time.
0 commit comments