Skip to content

Commit a134f63

Browse files
homeofeCopilot
andcommitted
ci: add npm publish workflow
Adds .github/workflows/publish.yml - triggers on git tag v*. Runs npm publish --access public using NPM_TOKEN secret. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 30722c6 commit a134f63

2 files changed

Lines changed: 25 additions & 3 deletions

File tree

.ai/handoff/MANIFEST.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
"quick_context": "commitprompt v0.1.0 published on npm. 59/59 tests passing. GitHub Actions and GitLab CI live. ESLint with typescript-eslint and custom no-em-dash rule configured. All tasks done.",
99
"last_session": {
1010
"agent": "claude-code",
11-
"duration_minutes": 5,
11+
"duration_minutes": 2,
1212
"session_id": "eslint-setup",
1313
"phase": "maintenance",
1414
"commit": "54bbf76",
15-
"timestamp": "2026-02-27T14:00:00.000Z"
15+
"timestamp": "2026-02-27T14:12:58.298Z"
1616
},
1717
"tasks": {
1818
"T-003": {
@@ -37,7 +37,7 @@
3737
"created": "2026-02-28T00:00:00Z",
3838
"depends_on": [],
3939
"priority": "low",
40-
"completed": "2026-02-27T14:00:00.000Z"
40+
"completed": "2026-02-27T14:12:58.299Z"
4141
}
4242
},
4343
"next_task_id": 4,

.github/workflows/publish.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: '20'
18+
registry-url: 'https://registry.npmjs.org'
19+
- run: npm ci
20+
- run: npm publish --access public
21+
env:
22+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)