Skip to content

Commit 5b79da2

Browse files
authored
chore: use changesets (#198)
* chore: use changesets * fix * fix
1 parent cea0a77 commit 5b79da2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+225
-64
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions

.changeset/config.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config/schema.json",
3+
"changelog": [
4+
"@changesets/changelog-github",
5+
{
6+
"repo": "ota-meshi/eslint-plugin-jsonc"
7+
}
8+
],
9+
"commit": false,
10+
"linked": [],
11+
"access": "restricted",
12+
"baseBranch": "main",
13+
"updateInternalDependencies": "patch",
14+
"bumpVersionsWithWorkspaceProtocolOnly": true,
15+
"ignore": []
16+
}

.env-cmdrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"version": {
33
"IN_VERSION_SCRIPT": "true"
4+
},
5+
"version-ci": {
6+
"IN_VERSION_CI_SCRIPT": "true"
47
}
58
}

.github/workflows/NpmPublish.yml

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

.github/workflows/Release.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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@v3
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+
19+
- name: Setup Node.js 16
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: 16
23+
24+
- name: Install Dependencies
25+
run: npm install
26+
27+
- name: Create Release Pull Request or Publish to npm
28+
id: changesets
29+
uses: changesets/action@v1
30+
with:
31+
# this expects you to have a npm script called version that runs some logic and then calls `changeset version`.
32+
version: npm run version:ci
33+
# This expects you to have a script called release which does a build for your packages and calls changeset publish
34+
publish: npm run release
35+
commit: "chore: release eslint-plugin-jsonc"
36+
title: "chore: release eslint-plugin-jsonc"
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

docs/rules/array-bracket-newline.md

Lines changed: 1 addition & 0 deletions

docs/rules/array-bracket-spacing.md

Lines changed: 1 addition & 0 deletions

docs/rules/array-element-newline.md

Lines changed: 1 addition & 0 deletions

docs/rules/auto.md

Lines changed: 1 addition & 0 deletions

docs/rules/comma-dangle.md

Lines changed: 1 addition & 0 deletions

0 commit comments

Comments
 (0)