Skip to content

Commit

Permalink
Update trigger workflow and refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
sosukesuzuki committed Oct 1, 2023
1 parent 53da0bd commit b0ae0e3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: CI
on: [push]
on:
push:
branches-ignore: ["npm-version/*"]
pull_request:
types: [opened]
branches: ["npm-version/*"]
jobs:
test:
name: Run tests
Expand Down
8 changes: 5 additions & 3 deletions es/scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ npm version $VERSION --no-git-tag-version --workspaces
npm publish --workspaces --access=public

# create a branch and push it to github
git checkout -b update-version-$VERSION
BRANCH_NAME=npm-version/$VERSION

git checkout -b $BRANCH_NAME
git add .
git commit -m "Release $VERSION"
git push origin update-version-$VERSION
git push origin $BRANCH_NAME

# create a PR
gh pr create --title "Update ES packages version to $VERSION" --body "Update version to $VERSION" --base main --head update-version-$VERSION
gh pr create --title "Update ES packages version to $VERSION" --body "Update version to $VERSION" --base main --head $BRANCH_NAME

0 comments on commit b0ae0e3

Please sign in to comment.