Skip to content

Commit

Permalink
CI: prevent snapshot release from branch (#175)
Browse files Browse the repository at this point in the history
* CI: prevent snapshot release from branch

* CI: add .github/release.yml

* Create grumpy-teachers-think.md
  • Loading branch information
azu authored Jan 2, 2025
1 parent 9b519f6 commit dba9f59
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/grumpy-teachers-think.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"textlint-rule-preset-ja-technical-writing": patch
---

CI: prevent snapshot release from branch
30 changes: 30 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
changelog:
exclude:
labels:
- 'Type: Meta'
- 'Type: Question'
- 'Type: Release'

categories:
- title: Security Fixes
labels: ['Type: Security']
- title: Breaking Changes
labels: ['Type: Breaking Change']
- title: Features
labels: ['Type: Feature']
- title: Bug Fixes
labels: ['Type: Bug']
- title: Documentation
labels: ['Type: Documentation']
- title: Refactoring
labels: ['Type: Refactoring']
- title: Testing
labels: ['Type: Testing']
- title: Maintenance
labels: ['Type: Maintenance']
- title: CI
labels: ['Type: CI']
- title: Dependency Updates
labels: ['Type: Dependencies', "dependencies"]
- title: Other Changes
labels: ['*']
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
- name: Publish next snapshot
if: steps.changesets.outputs.published != 'true'
run: |
git checkout master # reset current branch to master
npm exec -- changeset version --snapshot next
npm exec -- changeset publish --no-git-tag --snapshot --tag next
env:
Expand Down

0 comments on commit dba9f59

Please sign in to comment.