Skip to content

Commit dba9f59

Browse files
authored
CI: prevent snapshot release from branch (#175)
* CI: prevent snapshot release from branch * CI: add .github/release.yml * Create grumpy-teachers-think.md
1 parent 9b519f6 commit dba9f59

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

.changeset/grumpy-teachers-think.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"textlint-rule-preset-ja-technical-writing": patch
3+
---
4+
5+
CI: prevent snapshot release from branch

.github/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
changelog:
2+
exclude:
3+
labels:
4+
- 'Type: Meta'
5+
- 'Type: Question'
6+
- 'Type: Release'
7+
8+
categories:
9+
- title: Security Fixes
10+
labels: ['Type: Security']
11+
- title: Breaking Changes
12+
labels: ['Type: Breaking Change']
13+
- title: Features
14+
labels: ['Type: Feature']
15+
- title: Bug Fixes
16+
labels: ['Type: Bug']
17+
- title: Documentation
18+
labels: ['Type: Documentation']
19+
- title: Refactoring
20+
labels: ['Type: Refactoring']
21+
- title: Testing
22+
labels: ['Type: Testing']
23+
- title: Maintenance
24+
labels: ['Type: Maintenance']
25+
- title: CI
26+
labels: ['Type: CI']
27+
- title: Dependency Updates
28+
labels: ['Type: Dependencies', "dependencies"]
29+
- title: Other Changes
30+
labels: ['*']

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
- name: Publish next snapshot
3939
if: steps.changesets.outputs.published != 'true'
4040
run: |
41+
git checkout master # reset current branch to master
4142
npm exec -- changeset version --snapshot next
4243
npm exec -- changeset publish --no-git-tag --snapshot --tag next
4344
env:

0 commit comments

Comments
 (0)