Skip to content

Commit 0cc83a1

Browse files
committed
publish.yml
1 parent a8d7c85 commit 0cc83a1

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/publish.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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: '16'
19+
cache: 'pnpm'
20+
21+
- name: Install pnpm
22+
run: npm install -g pnpm
23+
24+
- name: Install dependencies
25+
run: pnpm install
26+
working-directory: packages/material-react-table
27+
28+
- name: Build package
29+
run: pnpm build
30+
working-directory: packages/material-react-table
31+
32+
- name: Publish release
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
run: |
36+
pnpm pack
37+
gh release upload ${{ github.event.release.tag_name }} *.tgz
38+
working-directory: packages/material-react-table

0 commit comments

Comments
 (0)