Skip to content

Commit 4bb7ea3

Browse files
build: add publish action to v3
1 parent 9bd7d96 commit 4bb7ea3

File tree

2 files changed

+39
-2
lines changed

2 files changed

+39
-2
lines changed

.github/workflows/publish.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Publish Build
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build-and-publish:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v2
14+
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: 21
19+
20+
- name: Setup pnpm
21+
uses: pnpm/action-setup@v4
22+
23+
- name: Install dependencies
24+
run: pnpm install
25+
working-directory: packages/material-react-table
26+
27+
- name: Build package
28+
run: pnpm build
29+
working-directory: packages/material-react-table
30+
31+
- name: Publish release
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
run: |
35+
pnpm pack
36+
gh release upload ${{ github.event.release.tag_name }} *.tgz
37+
working-directory: packages/material-react-table

packages/material-react-table/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "3.2.1",
2+
"version": "3.2.1-dropit",
33
"license": "MIT",
44
"name": "material-react-table",
55
"description": "A fully featured Material UI V6 implementation of TanStack React Table V8, written from the ground up in TypeScript.",
@@ -118,4 +118,4 @@
118118
"@tanstack/react-virtual": "3.11.2",
119119
"highlight-words": "2.0.0"
120120
}
121-
}
121+
}

0 commit comments

Comments
 (0)