Skip to content

Commit b2889ca

Browse files
author
SUZUKI Sosuke
authored
Merge pull request #48 from cybozu/fix-trigger-of-workflow
Update trigger workflow and refactoring
2 parents 53da0bd + b0ae0e3 commit b2889ca

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
name: CI
2-
on: [push]
2+
on:
3+
push:
4+
branches-ignore: ["npm-version/*"]
5+
pull_request:
6+
types: [opened]
7+
branches: ["npm-version/*"]
38
jobs:
49
test:
510
name: Run tests

es/scripts/release.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ npm version $VERSION --no-git-tag-version --workspaces
1212
npm 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
1618
git add .
1719
git 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

0 commit comments

Comments
 (0)