Skip to content

Commit 41633f9

Browse files
committed
feat: prep npm release workflow and package metadata
1 parent 1a78025 commit 41633f9

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
push:
55
branches:
66
- main
7+
workflow_dispatch:
8+
9+
concurrency:
10+
group: release-${{ github.ref }}
11+
cancel-in-progress: false
712

813
permissions:
914
contents: write
@@ -30,11 +35,16 @@ jobs:
3035
- name: Install dependencies
3136
run: npm ci
3237

38+
- name: Test
39+
run: npm test --if-present
40+
3341
- name: Build
3442
run: npm run build --if-present
3543

3644
- name: Release
3745
env:
3846
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
48+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3949
NPM_CONFIG_PROVENANCE: true
4050
run: npx semantic-release

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
node_modules/
22
dist/
3+
dist-release/
34
coverage/
45
*.log
56
.DS_Store

package.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,20 @@
33
"version": "0.0.0-development",
44
"description": "L402 middleware foundation with Express, Hono, and Next adapters",
55
"license": "MIT",
6+
"repository": {
7+
"type": "git",
8+
"url": "git+https://github.com/zbdpay/agent-pay.git"
9+
},
10+
"bugs": {
11+
"url": "https://github.com/zbdpay/agent-pay/issues"
12+
},
13+
"homepage": "https://github.com/zbdpay/agent-pay#readme",
14+
"keywords": [
15+
"zbd",
16+
"lightning",
17+
"l402",
18+
"middleware"
19+
],
620
"type": "module",
721
"main": "dist/index.js",
822
"types": "dist/index.d.ts",

0 commit comments

Comments
 (0)