Skip to content

Commit 72c9f4c

Browse files
committed
feat: add GitHub Actions workflow for npm publishing and update package version to 0.1.1
1 parent 621fd67 commit 72c9f4c

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

.github/workflows/publish.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Publish to npm
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
id-token: write
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: pnpm/action-setup@v4
18+
with:
19+
version: 9
20+
21+
- uses: actions/setup-node@v4
22+
with:
23+
node-version: '20'
24+
cache: 'pnpm'
25+
registry-url: 'https://registry.npmjs.org'
26+
27+
- run: pnpm install --frozen-lockfile
28+
29+
- run: pnpm --filter @stream-md/react build
30+
31+
- run: pnpm --filter @stream-md/react publish --access public --no-git-checks
32+
env:
33+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

packages/streaming-markdown/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stream-md/react",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "React component for rendering streaming markdown content",
55
"main": "./dist/index.js",
66
"module": "./dist/index.mjs",

0 commit comments

Comments
 (0)