File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Publish to GitLab Registry
1+ name : Publish to GitHub Packages
22
33on :
44 push :
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 }}
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments