Skip to content

Commit

Permalink
chore: Add changesets configuration and release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sakib412 committed Dec 16, 2024
1 parent 171a7a8 commit 37ef399
Show file tree
Hide file tree
Showing 6 changed files with 668 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
16 changes: 16 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.0.4/schema.json",
"changelog": [
"@changesets/changelog-github",
{
"repo": "AppifyLab/eslint-plugin"
}
],
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
5 changes: 5 additions & 0 deletions .changeset/sharp-pants-knock.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ezycourse/eslint-plugin": patch
---

Adding changesets
44 changes: 44 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Release

on:
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4

- uses: pnpm/action-setup@v2
with:
version: 9.10.0

- name: Setup Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 22.x
cache: 'pnpm'

- name: Install Dependencies
run: pnpm install

- name: Test
run: pnpm test

- name: Build
run: pnpm build

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: npx changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@
"requireindex": "^1.2.0"
},
"devDependencies": {
"eslint": "^9.16.0",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.10",
"@eslint/js": "^9.16.0",
"eslint": "^9.16.0",
"eslint-doc-generator": "^1.7.1",
"eslint-plugin-eslint-plugin": "^6.3.2",
"eslint-plugin-n": "^17.14.0",
Expand Down
Loading

0 comments on commit 37ef399

Please sign in to comment.