Skip to content

Commit 8478a4f

Browse files
Merge pull request #1 from dropit-dev/feature/publish-action
Feature/publish action
2 parents a8d7c85 + 9162cb9 commit 8478a4f

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
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

0 commit comments

Comments
 (0)