Skip to content

Commit ac65f6d

Browse files
committed
ci: publish package on tags
1 parent ad55536 commit ac65f6d

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/release.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "**"
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Install Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: 20
20+
21+
- uses: pnpm/action-setup@v4
22+
name: Install pnpm
23+
with:
24+
version: 8
25+
run_install: false
26+
27+
- name: Get pnpm store directory
28+
shell: bash
29+
run: |
30+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
31+
32+
- name: Install dependencies
33+
run: pnpm install
34+
35+
- name: Build
36+
run: pnpm build
37+
38+
- name: Build storybook
39+
run: pnpm build-storybook
40+
41+
- name: Publish
42+
uses: JS-DevTools/npm-publish@v3
43+
with:
44+
token: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)