Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"react/no-did-update-set-state": 1,
"react/no-unknown-property": 1,
"react/prop-types": 0,
"react/react-in-jsx-scope": 1,
"react/react-in-jsx-scope": 0,
"react/self-closing-comp": 1,
"semi": [2, "always"],
"strict": 0,
Expand Down
51 changes: 43 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,44 @@
name: Release
on:
release:
types: [created]
issue_comment:
types: [created, deleted]
push:
branches:
- master
jobs:
build:
check:
runs-on: ubuntu-latest
name: Publish package
name: Context check
outputs:
continue: ${{ steps.check.outputs.continue }}
workflow: ${{ steps.check.outputs.workflow }}
steps:
- name: Checkout the repository
uses: actions/checkout@v5
- name: Context check
id: check
uses: trigensoftware/simple-release-action@latest
with:
workflow: check
github-token: ${{ secrets.GITHUB_TOKEN }}
pull-request:
runs-on: ubuntu-latest
name: Pull request
needs: check
if: needs.check.outputs.workflow == 'pull-request'
steps:
- name: Checkout the repository
uses: actions/checkout@v5
- name: Create or update pull request
uses: trigensoftware/simple-release-action@latest
with:
workflow: pull-request
github-token: ${{ secrets.GITHUB_TOKEN }}
release:
runs-on: ubuntu-latest
name: Release
needs: check
if: needs.check.outputs.workflow == 'release'
steps:
- name: Checkout the repository
uses: actions/checkout@v5
Expand All @@ -21,7 +54,9 @@ jobs:
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: pnpm install
- name: Publish
run: pnpm publish --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Release
uses: trigensoftware/simple-release-action@latest
with:
workflow: release
github-token: ${{ secrets.GITHUB_TOKEN }}
npm-token: ${{ secrets.NPM_TOKEN }}
9 changes: 9 additions & 0 deletions .simple-release.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"project": "@simple-release/pnpm#PnpmProject",
"releaser": {
"verbose": true
},
"publish": {
"access": "public"
}
}
15 changes: 5 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@
"test": "pnpm test:lint && pnpm test:unit",
"format": "prettier --write src",
"commit": "cz",
"bumpVersion": "standard-version",
"createGithubRelease": "simple-github-release",
"release": "pnpm bumpVersion && git push origin master --tags && pnpm createGithubRelease",
"updateGitHooks": "simple-git-hooks"
},
"peerDependencies": {
Expand All @@ -65,7 +62,7 @@
"@commitlint/cli": "^17.0.0",
"@commitlint/config-conventional": "^17.0.0",
"@commitlint/cz-commitlint": "^17.0.0",
"@rollup/plugin-node-resolve": "^16.0.0",
"@rollup/plugin-node-resolve": "^16.0.3",
"@size-limit/preset-big-lib": "^11.1.6",
"@storybook/addon-actions": "^8.4.7",
"@storybook/addon-controls": "^8.4.7",
Expand All @@ -76,15 +73,15 @@
"@storybook/react": "^8.4.7",
"@storybook/react-vite": "^8.4.7",
"@storybook/theming": "^8.4.7",
"@swc/core": "^1.10.1",
"@swc/helpers": "^0.5.15",
"@swc/core": "^1.13.5",
"@swc/helpers": "^0.5.17",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.1.0",
"@types/faker": "^5.5.8",
"@types/node": "^18.0.0",
"@types/react": "^19.0.2",
"@types/react-dom": "^19.0.2",
"@types/react": "^19.2.2",
"@types/react-dom": "^19.2.2",
"@typescript-eslint/eslint-plugin": "^8.18.0",
"@typescript-eslint/parser": "^8.18.0",
"@vitejs/plugin-react": "^5.0.0",
Expand Down Expand Up @@ -116,9 +113,7 @@
"rollup": "^4.0.0",
"rollup-plugin-swc3": "^0.12.0",
"simple-git-hooks": "^2.6.1",
"simple-github-release": "^1.0.0",
"size-limit": "^11.1.6",
"standard-version": "^9.3.1",
"storybook": "^8.4.7",
"tsd": "^0.33.0",
"typescript": "^5.7.2",
Expand Down
Loading