Skip to content

Commit 2bc56ce

Browse files
committed
feat: add GH publish action
1 parent d4fd01a commit 2bc56ce

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish Package to npmjs
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
11+
- name: Setup Node.js
12+
uses: actions/setup-node@v4
13+
with:
14+
node-version: "20.x"
15+
registry-url: "https://registry.npmjs.org"
16+
17+
- name: Install dependencies
18+
run: yarn install --frozen-lockfile
19+
20+
- name: Build
21+
run: yarn make
22+
23+
- name: Release latest
24+
run: yarn releaseLatest
25+
env:
26+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)