Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add missing release script
Browse files Browse the repository at this point in the history
JounQin committed Jan 6, 2024

Verified

This commit was signed with the committer’s verified signature.
JounQin JounQin
1 parent 4794363 commit b16578e
Showing 3 changed files with 17 additions and 6 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -32,9 +32,8 @@ jobs:
id: changesets
uses: changesets/action@v1
with:
commit: 'chore: release synckit'
title: 'chore: release synckit'
version: yarn run version
commit: 'chore: release react-server-renderer'
title: 'chore: release react-server-renderer'
publish: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "react-server-renderer",
"version": "1.2.0",
"description": "simple React SSR solution inspired by vue-server-render",
"repository": "[email protected]:JounQin/react-server-renderer.git",
"description": "Yet another simple React SSR solution inspired by vue-server-render",
"repository": "[email protected]:un-ts/react-server-renderer.git",
"author": "JounQin <[email protected]>",
"license": "MIT",
"type": "module",
@@ -34,7 +34,8 @@
"lint:es": "eslint . --cache",
"lint:tsc": "tsc --noEmit",
"typecov": "type-coverage",
"prepare": "simple-git-hooks"
"prepare": "simple-git-hooks",
"release": "clean-pkg-json && changeset publish"
},
"peerDependencies": {
"react": "^16.0.0 || ^17.0.0 || ^18.0.0",
@@ -63,6 +64,7 @@
"@types/resolve": "^1.20.6",
"@types/serialize-javascript": "^5.0.4",
"@types/webpack": "^5.28.5",
"clean-pkg-json": "^1.2.0",
"eslint": "^8.56.0",
"lint-staged": "^15.2.0",
"npm-run-all2": "^6.1.1",
10 changes: 10 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -5577,6 +5577,15 @@ __metadata:
languageName: node
linkType: hard

"clean-pkg-json@npm:^1.2.0":
version: 1.2.0
resolution: "clean-pkg-json@npm:1.2.0"
bin:
clean-pkg-json: dist/index.js
checksum: d08b1d3cd71878dfadd432bff551345101f57605947dc9ab1b39359863e784c204474ea038e50f44154899f41631d152ff306a2f9f8d825c318e74c317e820bc
languageName: node
linkType: hard

"clean-regexp@npm:^1.0.0":
version: 1.0.0
resolution: "clean-regexp@npm:1.0.0"
@@ -11989,6 +11998,7 @@ __metadata:
"@types/serialize-javascript": "npm:^5.0.4"
"@types/webpack": "npm:^5.28.5"
chalk: "npm:^4.1.2"
clean-pkg-json: "npm:^1.2.0"
eslint: "npm:^8.56.0"
hash-sum: "npm:^2.0.0"
lint-staged: "npm:^15.2.0"

0 comments on commit b16578e

Please sign in to comment.