Skip to content

Commit cfcc3e2

Browse files
Thomas Tupperclaude
authored andcommitted
chore: switch publish target to GitHub Packages
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 7627ecf commit cfcc3e2

2 files changed

Lines changed: 7 additions & 14 deletions

File tree

.github/workflows/publish.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish to GitLab Registry
1+
name: Publish to GitHub Packages
22

33
on:
44
push:
@@ -11,6 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
permissions:
1313
contents: read
14+
packages: write
1415

1516
steps:
1617
- uses: actions/checkout@v4
@@ -19,29 +20,21 @@ jobs:
1920
uses: actions/setup-node@v4
2021
with:
2122
node-version: "20"
23+
registry-url: "https://npm.pkg.github.com"
24+
scope: "@foxlight-foundation"
2225

2326
- name: Install dependencies
2427
run: yarn install --frozen-lockfile
2528

2629
- name: Build
2730
run: yarn build
2831

29-
- name: Configure GitLab NPM registry
30-
# GITLAB_REGISTRY_URL: your GitLab project-level or group-level registry endpoint
31-
# e.g. https://gitlab.com/api/v4/projects/<PROJECT_ID>/packages/npm/
32-
# or https://gitlab.com/api/v4/groups/<GROUP_PATH>/packages/npm/
33-
# GITLAB_TOKEN: a GitLab personal access token with api + write_package_registry scopes
34-
#
35-
# Set both as GitHub repository secrets before running this workflow.
36-
run: |
37-
echo "@foxlight:registry=${{ secrets.GITLAB_REGISTRY_URL }}" >> .npmrc
38-
echo "${{ secrets.GITLAB_REGISTRY_URL }}:_authToken=${{ secrets.GITLAB_TOKEN }}" >> .npmrc
39-
echo "always-auth=true" >> .npmrc
40-
4132
- name: Set package version from tag
4233
run: |
4334
TAG="${GITHUB_REF_NAME#v}"
4435
npm version "$TAG" --no-git-tag-version
4536
4637
- name: Publish
4738
run: yarn publish --access public --non-interactive
39+
env:
40+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@foxlight/foxmemory-plugin-v2",
2+
"name": "@foxlight-foundation/foxmemory-plugin-v2",
33
"version": "1.0.0",
44
"description": "OpenClaw memory plugin backed by the FoxMemory HTTP v2 API (Qdrant + Neo4j)",
55
"main": "dist/index.js",

0 commit comments

Comments
 (0)