Skip to content

Commit 5269e19

Browse files
committed
chore: add release workflow
1 parent 819a4d7 commit 5269e19

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

.github/workflows/release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: write
8+
id-token: write
9+
10+
jobs:
11+
release:
12+
name: Release
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
19+
- uses: pnpm/action-setup@v3
20+
21+
- uses: actions/setup-node@v4
22+
with:
23+
node-version: 22.x
24+
cache: pnpm
25+
26+
- name: Install deps
27+
run: |
28+
pnpm i --frozen-lockfile
29+
30+
- name: Release
31+
run: |
32+
npm install -g npm@latest # Ensure npm 11.5.1 or later is installed
33+
pnpm publish

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@fanciers/echarts-react",
3-
"version": "0.0.0",
3+
"version": "0.0.1",
44
"description": "ECharts <3 React",
55
"author": "Tmk <i@tmk.im>",
66
"keywords": [
@@ -23,6 +23,9 @@
2323
}
2424
},
2525
"typings": "./dist/index.d.ts",
26+
"repository": {
27+
"url": "https://github.com/tmkx/echarts-react.git"
28+
},
2629
"scripts": {
2730
"dev": "storybook dev",
2831
"prepack": "tsdown",

0 commit comments

Comments
 (0)