Skip to content

Commit 37ef399

Browse files
committed
chore: Add changesets configuration and release workflow
1 parent 171a7a8 commit 37ef399

File tree

6 files changed

+668
-1
lines changed

6 files changed

+668
-1
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.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@3.0.4/schema.json",
3+
"changelog": [
4+
"@changesets/changelog-github",
5+
{
6+
"repo": "AppifyLab/eslint-plugin"
7+
}
8+
],
9+
"commit": false,
10+
"fixed": [],
11+
"linked": [],
12+
"access": "restricted",
13+
"baseBranch": "main",
14+
"updateInternalDependencies": "patch",
15+
"ignore": []
16+
}

.changeset/sharp-pants-knock.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ezycourse/eslint-plugin": patch
3+
---
4+
5+
Adding changesets

.github/workflows/release.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
jobs:
11+
release:
12+
name: Release
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout Repo
16+
uses: actions/checkout@v4
17+
18+
- uses: pnpm/action-setup@v2
19+
with:
20+
version: 9.10.0
21+
22+
- name: Setup Node.js 22.x
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: 22.x
26+
cache: 'pnpm'
27+
28+
- name: Install Dependencies
29+
run: pnpm install
30+
31+
- name: Test
32+
run: pnpm test
33+
34+
- name: Build
35+
run: pnpm build
36+
37+
- name: Create Release Pull Request or Publish to npm
38+
id: changesets
39+
uses: changesets/action@v1
40+
with:
41+
publish: npx changeset publish
42+
env:
43+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@
2727
"requireindex": "^1.2.0"
2828
},
2929
"devDependencies": {
30-
"eslint": "^9.16.0",
30+
"@changesets/changelog-github": "^0.5.0",
31+
"@changesets/cli": "^2.27.10",
3132
"@eslint/js": "^9.16.0",
33+
"eslint": "^9.16.0",
3234
"eslint-doc-generator": "^1.7.1",
3335
"eslint-plugin-eslint-plugin": "^6.3.2",
3436
"eslint-plugin-n": "^17.14.0",

0 commit comments

Comments
 (0)