Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update template #3

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/changeset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ jobs:
issues: write
pull-requests: write

if: github.repository == 'BunnyWay/es-hono-pet-store'

name: Release
runs-on: ubuntu-latest
steps:
Expand Down
17 changes: 12 additions & 5 deletions .github/workflows/on-merge.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
name: On merge changeset
name: On merge

on:
pull_request:
types: [closed]
# To enable the Changeset pattern, you'll need to uncomment those line so each
# time a Pull Request is closed you run this action.
# pull_request:
# types: [closed]
# branches:
# - 'main'
# Every push on main are going to run this action.
push:
branches:
- 'main'

jobs:
publish:
if: contains(github.event.pull_request.head.ref, 'changeset-release')
# To ensure you only run this action when closing a Release PR, you should
# uncomment this
# if: contains(github.event.pull_request.head.ref, 'changeset-release')

name: 'Upload script'
runs-on: ubuntu-latest
Expand All @@ -27,5 +35,4 @@ jobs:
uses: 'BunnyWay/actions/deploy-script@main'
with:
script_id: ${{ secrets.SCRIPT_ID }}
deploy_key: ${{ secrets.DEPLOY_KEY }}
file: "dist/index.ts"
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,8 @@ create an associated pull request to release your changes.

This new pull request will trigger the release process of the script to your
PullZone in Bunny.

> This behavior is disabled by default, every pushes on main are now pushed to
> Bunny directly.
> You can enable this pattern again by updating this
> [action](./.github/workflows/on-merge.yml)
Loading