Skip to content

Commit

Permalink
Merge pull request #228 from akiojin/develop
Browse files Browse the repository at this point in the history
bump: v3.9.18
  • Loading branch information
akiojin authored Jan 9, 2025
2 parents bacfc63 + e76d053 commit eb9e429
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/PR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
pull-requests: write

steps:
- name: 🌱 Checkout to the branch
- name: 🔄 Checkout to the branch
uses: actions/checkout@v4

- uses: akiojin/auto-review-github-action@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: 🔄 Checkout to the branch
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref}}
ref: ${{ github.head_ref }}

- name: ✅ Auto merge
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
timeout-minutes: 5

steps:
- name: 🌱 Checkout to the branch
- name: 🔄 Checkout to the branch
uses: actions/checkout@v4

- name: 🍏 Set up Node.js version
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
contents: write

steps:
- name: 🌱 Checkout to the branch
- name: 🔄 Checkout to the branch
uses: actions/checkout@v4

- name: ⬆️ GitHub Release
- name: 🚀 GitHub Release
uses: akiojin/github-release-github-action@v0
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@akiojin/unity-bulid-github-action",
"version": "3.9.17",
"version": "3.9.18",
"description": "This action builds Unity and outputs ipa for iOS and apk/aab for Android.",
"main": "dist/index.js",
"scripts": {
Expand Down
14 changes: 4 additions & 10 deletions publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,18 @@ if [ "$BRANCH" != "develop" ]; then
exit 1
fi

VERSION=$(npm version $1 --no-git-tag-version)

if ! git pull; then
echo "Error: Failed to pull the latest changes."
exit 1
fi

git branch release/$VERSION
git switch release/$VERSION
VERSION=$(npm version $1 --no-git-tag-version)

git add package.json package-lock.json
git commit -m "bump: $VERSION"
git push --follow-tags --set-upstream origin release/$VERSION
git push --follow-tags

if ! gh pr create --base main --head release/$VERSION --title "bump: $VERSION" --body "bump: $VERSION"; then
if ! gh pr create --base main --head develop --title "bump: $VERSION" --body "bump: $VERSION"; then
echo "Error: Failed to create a pull request."
exit 1
fi

git switch develop
git merge release/$VERSION --no-ff --no-edit
git push --follow-tags

0 comments on commit eb9e429

Please sign in to comment.