Skip to content

Commit ffaf6f2

Browse files
authored
feat: setup changesets (#73)
* feat: setup changesets * Create heavy-eels-carry.md
1 parent 4fa530d commit ffaf6f2

11 files changed

+884
-71
lines changed

.changeset/README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Changesets
2+
3+
このリポジトリは[Changesets](https://github.com/atlassian/changesets)を使ったリリース管理をしています。
4+
Pull Requestを出すと、`.changesets/UNIQUE_ID.md` に変更履歴を書くように要求されます。
5+
6+
changesetファイルには、次の形式で変更点を書いていきます。
7+
8+
```markdown
9+
---
10+
"textlint-rule-preset-japanese": major
11+
---
12+
13+
[ルールへのリンク](https://example.com) @ バージョン
14+
15+
変更点の解説
16+
17+
```
18+
19+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
20+
with multi-package repos, or single-package repos to help you version and publish your code. You can
21+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
22+
23+
We have a quick list of common questions to get you started engaging with this project in
24+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
25+
26+

.changeset/config.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"linked": [],
6+
"access": "public",
7+
"baseBranch": "master",
8+
"updateInternalDependencies": "patch",
9+
"ignore": []
10+
}

.changeset/heavy-eels-carry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"textlint-rule-preset-japanese": minor
3+
---
4+
5+
リリースに[Changesets](https://github.com/atlassian/changesets)を使うように変更
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"textlint-rule-preset-japanese": major
3+
---
4+
5+
[@textlint-rule/textlint-rule-no-invalid-control-character](https://github.com/textlint-rule/textlint-rule-no-invalid-control-character):sparkles:
6+
7+
> [Release v2.0.0 · textlint-rule/textlint-rule-no-invalid-control-character](https://github.com/textlint-rule/textlint-rule-no-invalid-control-character/releases/v2.0.0)
8+
9+
Imageの`alt`内もデフォルトでチェックするようになりました
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"textlint-rule-preset-japanese": major
3+
---
4+
5+
[textlint-rule-no-kangxi-radicals](https://github.com/xl1/textlint-rule-no-kangxi-radicals) :new
6+
7+
[康煕部首](https://ja.wikipedia.org/wiki/%E5%BA%B7%E7%85%95%E9%83%A8%E9%A6%96)(こうきぶしゅ)が含まれる問題を見つけるtextlintルール。
8+
詳細は[PDF に謎の漢字が含まれるとき](https://gist.github.com/xl1/940d653451fd96a06618a6df08d5df84)を参照。
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"textlint-rule-preset-japanese": major
3+
---
4+
5+
[textlint-rule-no-zero-width-spaces](https://github.com/textlint-rule/textlint-rule-no-zero-width-spaces) :new:
6+
7+
目視で見つけることができないため[ゼロ幅スペース](https://ja.wikipedia.org/wiki/%E3%82%BC%E3%83%AD%E5%B9%85%E3%82%B9%E3%83%9A%E3%83%BC%E3%82%B9)を見つけるtextlintルール

.github/workflows/release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
release:
10+
name: Release
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout Repo
14+
uses: actions/checkout@v2
15+
with:
16+
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
17+
fetch-depth: 0
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v2
20+
with:
21+
node-version: 14
22+
23+
- name: Install Dependencies
24+
run: yarn
25+
26+
- name: Create Release Pull Request or Publish to npm
27+
id: changesets
28+
uses: changesets/action@master
29+
with:
30+
publish: yarn run release
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
NPM_TOKEN: ${{ secrets.SHARED_BOT_NPM_TOKEN }}

.github/workflows/shipjs-schedule-prepare.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/shipjs-trigger.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
},
2323
"scripts": {
2424
"test": "cd example && yarn install && npm test",
25-
"release:prepare": "shipjs prepare",
26-
"release:trigger": "shipjs trigger"
25+
"release": "changeset publish"
2726
},
2827
"keywords": [
2928
"preset",
@@ -48,6 +47,7 @@
4847
"textlint-rule-sentence-length": "^2.1.1"
4948
},
5049
"devDependencies": {
50+
"@changesets/cli": "^2.16.0",
5151
"semver": "^7.3.2",
5252
"shipjs": "0.23.2"
5353
}

0 commit comments

Comments
 (0)