Repository navigation
149 lines (139 loc) · 5.05 KB
/
Copy pathpublish-sdks.yml
File metadata and controls
149 lines (139 loc) · 5.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# __ __ ___
# / / ____ ____ ____ _/ |/ /__ ____ ___ ____ _______ __
# / / / __ \/ __ \/ __ `/ /|_/ / _ \/ __ `__ \/ __ \/ ___/ / / /
# / /___/ /_/ / / / / /_/ / / / / __/ / / / / / /_/ / / / /_/ /
# /_____/\____/_/ /_/\__, /_/ /_/\___/_/ /_/ /_/\____/_/ \__, /
# /____/ /____/
#
# cavira oss (c) 2026 - nullure (c) 2026
# ----------------------------------------------------------
# file : .github/workflows/publish-sdks.yml
# usage : automates the LongMemory publish sdks workflow
name: Publish packages
on:
release:
types: [published]
workflow_dispatch:
permissions:
contents: read
id-token: write
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 11.5.2
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: npm --prefix dashboard ci
- run: pnpm release:check
- run: npm install --global @anthropic-ai/claude-code
- run: pnpm integration:claude:validate
npm:
needs: validate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 11.5.2
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://registry.npmjs.org
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm build
- run: npm publish --access public --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
npm-legacy-bridge:
needs: [validate, npm]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://registry.npmjs.org
- run: npm publish ./packages/openmemory-js --access public --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm deprecate "openmemory-js@<2.0.0" "Package renamed to longmemory. Install longmemory instead."
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
pypi-longmemory-sdk:
needs: validate
runs-on: ubuntu-latest
environment:
name: pypi-longmemory-sdk
url: https://pypi.org/p/longmemory-sdk
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- run: python -m pip install build
- run: python -m build packages/longmemory-py
- uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: packages/longmemory-py/dist
pypi-legacy-bridge:
needs: [validate, pypi-longmemory-sdk]
runs-on: ubuntu-latest
environment:
name: pypi-openmemory-py
url: https://pypi.org/p/openmemory-py
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- run: python -m pip install build
- run: python -m build packages/openmemory-py
- uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: packages/openmemory-py/dist
n8n:
needs: validate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 11.5.2
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://registry.npmjs.org
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm integration:n8n:build
- run: pnpm --dir integrations/n8n-nodes-longmemory publish --access public --provenance --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
vscode:
needs: validate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 11.5.2
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm --dir apps/vscode-extension exec vsce publish --no-dependencies --pat "$VSCE_PAT"
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}