Skip to content
This repository was archived by the owner on Jan 12, 2026. It is now read-only.

Commit 7ee5158

Browse files
committed
fix: publish packages to npm
1 parent e43ee6a commit 7ee5158

20 files changed

Lines changed: 126 additions & 60 deletions

.github/workflows/build-and-deploy.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ jobs:
3535
run: |
3636
cp -R packages/plugins/doc packages/distribution/build/plugin-doc
3737
38-
- name: Deploy
39-
uses: JamesIves/github-pages-deploy-action@4.1.5
40-
with:
41-
branch: master
42-
folder: packages/distribution/build
43-
repository-name: openscd/openscd.github.io
44-
ssh-key: ${{ secrets.DEPLOY_KEY }}
38+
# - name: Deploy
39+
# uses: JamesIves/github-pages-deploy-action@4.1.5
40+
# with:
41+
# branch: master
42+
# folder: packages/distribution/build
43+
# repository-name: openscd/openscd.github.io
44+
# ssh-key: ${{ secrets.DEPLOY_KEY }}

.github/workflows/release-please.yml

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
1616
id: release
1717
with:
1818
release-type: node
19-
command: manifest
2019
token: ${{ secrets.GITHUB_TOKEN }}
2120
# The logic below handles the npm publication:
2221
- uses: actions/checkout@v4
@@ -32,7 +31,39 @@ jobs:
3231
if: ${{ steps.release.outputs.release_created }}
3332
- run: npm run build
3433
if: ${{ steps.release.outputs.release_created }}
35-
- run: cd packages/core && npm publish --access public
34+
35+
- name: Publish core to npm
36+
run: cd packages/core && npm publish --access public
37+
env:
38+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
39+
if: ${{ steps.release.outputs.release_created }}
40+
continue-on-error: true
41+
- name: Publish addons to npm
42+
run: cd packages/addons && npm publish --access public
43+
env:
44+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
45+
if: ${{ steps.release.outputs.release_created }}
46+
continue-on-error: true
47+
- name: Publish forms to npm
48+
run: cd packages/forms && npm publish --access public
49+
env:
50+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
51+
if: ${{ steps.release.outputs.release_created }}
52+
continue-on-error: true
53+
- name: Publish wizards to npm
54+
run: cd packages/wizards && npm publish --access public
55+
env:
56+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
57+
if: ${{ steps.release.outputs.release_created }}
58+
continue-on-error: true
59+
- name: Publish xml to npm
60+
run: cd packages/xml && npm publish --access public
61+
env:
62+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
63+
if: ${{ steps.release.outputs.release_created }}
64+
continue-on-error: true
65+
- name: Publish open-scd to npm
66+
run: cd packages/openscd && npm publish --access public
3667
env:
3768
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
3869
if: ${{ steps.release.outputs.release_created }}

package-lock.json

Lines changed: 40 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/addons/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@openscd/addons",
2+
"name": "@compas-oscd/addons",
33
"version": "0.34.0",
44
"repository": "https://github.com/openscd/open-scd.git",
55
"directory": "packages/addons",
@@ -20,7 +20,7 @@
2020
],
2121
"dependencies": {
2222
"lit": "^2.2.7",
23-
"@openscd/core": "*"
23+
"@openscd/core": "npm:@compas-oscd/core@*"
2424
},
2525
"//": {
2626
"clean": "rimraf build",
@@ -133,4 +133,4 @@
133133
],
134134
"commitUrlFormat": "https://github.com/openscd/open-scd/commits/{{hash}}"
135135
}
136-
}
136+
}

packages/addons/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@openscd/addons",
2+
"name": "@compas-oscd/addons",
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"projectType": "library",
55
"sourceRoot": "packages/addons/src",

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@openscd/core",
2+
"name": "@compas-oscd/core",
33
"version": "0.1.4",
44
"description": "The core editor component of open-scd, without any extensions pre-installed.",
55
"author": "Open-SCD",

packages/core/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@openscd/core",
2+
"name": "@compas-oscd/core",
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"projectType": "library",
55
"sourceRoot": "packages/core/src",

packages/distribution/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
"./dist/**"
2121
],
2222
"dependencies": {
23-
"@openscd/addons": "*",
24-
"@openscd/open-scd": "*",
23+
"@compas-oscd/addons": "npm:@compas-oscd/addons@*",
24+
"@compas-oscd/open-scd": "npm:@compas-oscd/open-scd@*",
2525
"@openscd/plugins": "*"
2626
},
2727
"scripts": {

packages/distribution/tsconfig.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@
1616
"sourceMap": true,
1717
"inlineSources": true,
1818
"resolveJsonModule": true,
19-
"rootDir": "./"
20-
},
19+
"paths": {
20+
"@openscd/addons": ["../addons/src"],
21+
"@openscd/addons/*": ["../addons/*"],
22+
"@openscd/open-scd": ["../openscd/src/open-scd.ts"],
23+
"@openscd/open-scd/*": ["../openscd/*"]
24+
}
25+
},
2126
"include": ["**/*.ts"]
2227
}

packages/forms/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@openscd/forms",
2+
"name": "@compas-oscd/forms",
33
"version": "0.0.1",
44
"description": "The forms package OpenSCD",
55
"author": "Open-SCD",

0 commit comments

Comments
 (0)