diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b17aa77..8068ac4 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 diff --git a/es/scripts/release.sh b/es/scripts/release.sh index 8cc5837..719d970 100755 --- a/es/scripts/release.sh +++ b/es/scripts/release.sh @@ -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