Skip to content

Commit

Permalink
chore: setup changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
marcalexiei committed Sep 19, 2024
1 parent ccefe59 commit c9bf05f
Show file tree
Hide file tree
Showing 12 changed files with 735 additions and 22 deletions.
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)
14 changes: 14 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": [
"@changesets/changelog-github",
{ "repo": "marcalexiei/eslint-plugin-react-import" }
],
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": ["tests-*"]
}
5 changes: 5 additions & 0 deletions .changeset/twenty-dolphins-chew.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"eslint-plugin-react-import": major
---

Initial release
19 changes: 4 additions & 15 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: CI

concurrency:
group: "${{ github.workflow }} - ${{ github.head_ref || github.ref }}"
cancel-in-progress: true
group: "${{ github.workflow }}-${{ github.head_ref || github.ref }}"
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

on:
push:
Expand Down Expand Up @@ -62,19 +62,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
run_install: false

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "pnpm"

- name: Install dependencies
run: pnpm install
- name: Install Dependencies
uses: ./.github/actions/install-dependencies

- name: Build
if: ${{ matrix.needsBuild }}
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/actions/install-dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Install Dependencies
description: This is a composite GitHub Action that sets up pnpm, node and installs the project's dependencies.

runs:
using: composite
steps:
- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "pnpm"

- name: Install Dependencies
run: pnpm install --frozen-lockfile
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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
with:
fetch-depth: 0

- name: Install Dependencies
uses: ./.github/actions/install-dependencies

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
commit: "chore: release"
title: "chore: release"
publish: "pnpm publish"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
# eslint-plugin-react-import

[![CI](https://github.com/marcalexiei/eslint-plugin-react-import/actions/workflows/CI.yml/badge.svg)](https://github.com/marcalexiei/eslint-plugin-react-import/actions/workflows/CI.yml)
[![CI](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://prettier.io)

> [!WARNING]
> 🚧 Work in progress 🚧
>
> Check [#1](https://github.com/marcalexiei/eslint-plugin-react-import/issues/1)
[![Code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://prettier.io)

ESLint plugin to ensure consistent react imports

Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
"eslint": "^9"
},
"devDependencies": {
"@changesets/changelog-github": "0.5.0",
"@changesets/cli": "2.27.8",
"@eslint/js": "9.10.0",
"@types/estree": "1.0.5",
"@types/json-schema": "7.0.15",
Expand Down
Loading

0 comments on commit c9bf05f

Please sign in to comment.