Skip to content

Commit

Permalink
feat: changeset (#2)
Browse files Browse the repository at this point in the history
* chore: add ci lint

* fix: fix ci error

* chore: update lockfile

* chore: update deps

* chore: add typecheck

* Create clever-countries-enjoy.md

* chore: add release
  • Loading branch information
croatialu authored Nov 5, 2024
1 parent 653f25f commit 595a2c5
Show file tree
Hide file tree
Showing 7 changed files with 1,276 additions and 309 deletions.
5 changes: 5 additions & 0 deletions .changeset/clever-countries-enjoy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@modalor/vue": patch
---

feat: changeset
50 changes: 50 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: CI

on:
push:
branches:
- main

pull_request:
branches:
- main

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
run_install: false
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: pnpm

- run: pnpm install --frozen-lockfile
- run: pnpm run lint
- run: pnpm run typecheck

test:
runs-on: ${{ matrix.os }}

strategy:
matrix:
node: [lts/*]
os: [ubuntu-latest, windows-latest, macos-latest]
fail-fast: false

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
run_install: false
- name: Set node ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: pnpm

- run: pnpm install --frozen-lockfile
- run: pnpm run build
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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@v3

- name: Setup Node.js 20
uses: actions/setup-node@v3
with:
node-version: 20

- name: Install Dependencies
run: pnpm install --frozen-lockfile

- name: Create Release Pull Request
id: changesets
uses: changesets/action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Send a Slack notification if a publish happens
if: steps.changesets.outputs.published == 'true'
run: my-slack-bot send-notification --message "A new version of ${GITHUB_REPOSITORY} was published!"
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.15.1
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "modalor",
"private": true,
"packageManager": "pnpm@8.15.6",
"packageManager": "pnpm@9.12.3",
"description": "A modal state manager for Vue3/React.",
"engines": {
"node": ">=18"
Expand All @@ -10,15 +10,17 @@
"build": "turbo build",
"dev": "turbo dev",
"lint": "turbo lint",
"typecheck": "turbo typecheck",
"lint:fix": "eslint . --fix"
},
"devDependencies": {
"@antfu/eslint-config": "^3.8.0",
"@eslint-react/eslint-plugin": "^1.15.0",
"eslint": "^9.12.0",
"@changesets/cli": "^2.27.9",
"@eslint-react/eslint-plugin": "^1.15.2",
"eslint": "^9.14.0",
"eslint-plugin-format": "^0.1.2",
"eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-react-refresh": "^0.4.12",
"eslint-plugin-react-refresh": "^0.4.14",
"lint-staged": "^15.2.10",
"simple-git-hooks": "^2.11.1",
"turbo": "^2.2.3",
Expand Down
Loading

0 comments on commit 595a2c5

Please sign in to comment.