Skip to content

Commit 0142aaa

Browse files
authored
Merge pull request #5 from freema/update-publish
chore: update version to 1.0.1 and add publish workflow for npm
2 parents 0d0f63b + 5df32d3 commit 0142aaa

File tree

2 files changed

+50
-1
lines changed

2 files changed

+50
-1
lines changed

.github/workflows/publish.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Publish to npm
2+
3+
on:
4+
release:
5+
types: [published]
6+
push:
7+
tags:
8+
- 'v*.*.*'
9+
workflow_dispatch:
10+
11+
jobs:
12+
publish:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
id-token: write
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
21+
- name: Use Node.js 18.x
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: 18
25+
registry-url: 'https://registry.npmjs.org/'
26+
cache: 'npm'
27+
always-auth: true
28+
29+
- name: Configure npm auth
30+
run: |
31+
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > ~/.npmrc
32+
env:
33+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
34+
35+
- name: Install dependencies
36+
run: npm ci
37+
38+
- name: Run checks
39+
run: |
40+
npm run typecheck
41+
npm run lint
42+
npm run format:check
43+
npm run test:run
44+
npm run build
45+
46+
- name: Publish
47+
run: npm publish --access public --provenance
48+
env:
49+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mcp-design-system-extractor",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Simplified MCP server for Storybook design system extraction with component analysis tools",
55
"author": "graslt",
66
"license": "MIT",

0 commit comments

Comments
 (0)