Skip to content

Commit 772f6e1

Browse files
committed
build: added npm publish action
1 parent 45b6840 commit 772f6e1

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# .github/workflows/publish.yml
2-
31
name: Publish
42

53
on:

.github/workflows/publish-npm.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Release components package
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
- uses: pnpm/action-setup@v4
16+
name: Install pnpm
17+
- name: Install Node.js
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version-file: ".nvmrc"
21+
cache: pnpm
22+
registry-url: https://registry.npmjs.org
23+
- name: Install dependencies
24+
run: pnpm install --frozen-lockfile
25+
- name: Publish
26+
run: pnpm publish:npm
27+
working-directory: lib
28+
env:
29+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)