@_linked/primitives 1.0.6 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/publish.yml +36 -1
- package/CHANGELOG.md +6 -0
- package/lib/cjs/ontologies/primitives.js +0 -3
- package/lib/cjs/ontologies/primitives.js.map +1 -1
- package/lib/cjs/package.json +2 -2
- package/lib/esm/ontologies/primitives.js +0 -3
- package/lib/esm/ontologies/primitives.js.map +1 -1
- package/lib/esm/package.json +2 -2
- package/package.json +2 -2
|
@@ -15,8 +15,20 @@ jobs:
|
|
|
15
15
|
contents: write
|
|
16
16
|
pull-requests: write
|
|
17
17
|
steps:
|
|
18
|
+
# Author the changesets "Version Packages" PR as the org release App (not the default
|
|
19
|
+
# GITHUB_TOKEN) so its CI runs without a manual "Approve and run" gate. Requires the org
|
|
20
|
+
# App installed on this repo + org secrets RELEASE_APP_ID / RELEASE_APP_PRIVATE_KEY.
|
|
21
|
+
- name: Generate GitHub App token
|
|
22
|
+
id: app-token
|
|
23
|
+
uses: actions/create-github-app-token@v2
|
|
24
|
+
with:
|
|
25
|
+
app-id: ${{ secrets.RELEASE_APP_ID }}
|
|
26
|
+
private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
|
|
27
|
+
|
|
18
28
|
- name: Checkout
|
|
19
29
|
uses: actions/checkout@v4
|
|
30
|
+
with:
|
|
31
|
+
token: ${{ steps.app-token.outputs.token }}
|
|
20
32
|
|
|
21
33
|
- name: Setup Node.js
|
|
22
34
|
uses: actions/setup-node@v4
|
|
@@ -31,12 +43,35 @@ jobs:
|
|
|
31
43
|
run: npm run build
|
|
32
44
|
|
|
33
45
|
- name: Create release Pull Request or Publish
|
|
46
|
+
id: changesets
|
|
34
47
|
uses: changesets/action@v1
|
|
35
48
|
with:
|
|
36
49
|
publish: npx changeset publish
|
|
37
50
|
title: 'chore: release'
|
|
38
51
|
commit: 'chore: release'
|
|
39
52
|
env:
|
|
40
|
-
GITHUB_TOKEN: ${{
|
|
53
|
+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
|
|
41
54
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
|
|
42
55
|
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
|
|
56
|
+
|
|
57
|
+
# When changesets opened/updated the version PR (rather than publishing), merge it so the
|
|
58
|
+
# release ships without a manual click. App token → the merge's push re-triggers this
|
|
59
|
+
# workflow, which then runs `changeset publish`. DIRECT-merge (not `--auto`): GitHub
|
|
60
|
+
# auto-merge ignores branch-protection review-bypass allowances; main is check-only so a
|
|
61
|
+
# direct merge lands once the required check is green — retry until then.
|
|
62
|
+
- name: Merge the version PR to publish
|
|
63
|
+
if: steps.changesets.outputs.hasChangesets == 'true' && steps.changesets.outputs.published != 'true'
|
|
64
|
+
env:
|
|
65
|
+
GH_TOKEN: ${{ steps.app-token.outputs.token }}
|
|
66
|
+
run: |
|
|
67
|
+
pr=$(gh pr list --base main --head changeset-release/main --state open --json number --jq '.[0].number // empty')
|
|
68
|
+
if [ -z "$pr" ]; then echo "No open version PR (nothing to merge)."; exit 0; fi
|
|
69
|
+
for i in $(seq 1 40); do
|
|
70
|
+
if gh pr merge "$pr" --merge 2>/tmp/merge_err; then
|
|
71
|
+
echo "Merged version PR #$pr on attempt $i."
|
|
72
|
+
exit 0
|
|
73
|
+
fi
|
|
74
|
+
echo "Attempt $i/40: version PR #$pr not mergeable yet ($(tr -d '\n' < /tmp/merge_err)); waiting for the required check…"
|
|
75
|
+
sleep 15
|
|
76
|
+
done
|
|
77
|
+
echo "::warning::Version PR #$pr not merged after retries — merge it manually."
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @\_linked/primitives
|
|
2
2
|
|
|
3
|
+
## 1.0.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#5](https://github.com/linked-cm/primitives/pull/5) [`985931d`](https://github.com/linked-cm/primitives/commit/985931d7a7e09e34a945dd9ac25d844981fca469) Thanks [@flyon](https://github.com/flyon)! - loadData: ESM-only JSON import — drop the dead CJS branch, add the `{ with: { type: 'json' } }` import attribute.
|
|
8
|
+
|
|
3
9
|
## 1.0.6
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -42,9 +42,6 @@ const dataFile = '../data/primitives.json';
|
|
|
42
42
|
const base = 'http://lincd.org/ont/radix/';
|
|
43
43
|
Prefix_1.Prefix.add('radix', base);
|
|
44
44
|
const loadData = () => {
|
|
45
|
-
if (typeof module !== 'undefined' && typeof exports !== 'undefined') {
|
|
46
|
-
return Promise.resolve(`${dataFile}`).then(s => __importStar(require(s)));
|
|
47
|
-
}
|
|
48
45
|
//@ts-ignore
|
|
49
46
|
return Promise.resolve(`${dataFile}`).then(s => __importStar(require(s))).then((data) => data.default);
|
|
50
47
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"primitives.js","sourceRoot":"","sources":["../../../src/ontologies/primitives.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAoD;AACpD,6DAAgE;AAChE,8CAA+C;AAC/C,uDAAyC;AAEzC,MAAM,QAAQ,GAAG,yBAAyB,CAAC;AAC3C,MAAM,IAAI,GAAG,6BAA6B,CAAC;AAE3C,eAAM,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AAEnB,MAAM,QAAQ,GAAG,GAAG,EAAE;IAC3B,
|
|
1
|
+
{"version":3,"file":"primitives.js","sourceRoot":"","sources":["../../../src/ontologies/primitives.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAoD;AACpD,6DAAgE;AAChE,8CAA+C;AAC/C,uDAAyC;AAEzC,MAAM,QAAQ,GAAG,yBAAyB,CAAC;AAC3C,MAAM,IAAI,GAAG,6BAA6B,CAAC;AAE3C,eAAM,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AAEnB,MAAM,QAAQ,GAAG,GAAG,EAAE;IAC3B,YAAY;IACZ,OAAO,mBAAO,QAAQ,wCAA8B,IAAI,CACtD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CACvB,CAAC;AACJ,CAAC,CAAC;AALW,QAAA,QAAQ,YAKnB;AAEW,QAAA,EAAE,GAAG,IAAA,2BAAe,EAAC,IAAI,CAAC,CAAC;AAC3B,QAAA,KAAK,GAAG,IAAA,UAAE,EAAC,EAAE,CAAC,CAAC;AAEf,QAAA,KAAK,GAAG;IACnB,KAAK,EAAL,aAAK;CACN,CAAC;AAEF,IAAA,2BAAc,EAAC,KAAK,EAAE,UAAE,EAAE,OAAO,EAAE,gBAAQ,EAAE,QAAQ,CAAC,CAAC"}
|
package/lib/cjs/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": ""
|
|
12
12
|
},
|
|
13
|
-
"version": "1.0.
|
|
13
|
+
"version": "1.0.8",
|
|
14
14
|
"linkedPackage": true,
|
|
15
15
|
"license": "ISC",
|
|
16
16
|
"scripts": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@_linked/core": "^2.0.1",
|
|
33
|
-
"@_linked/css": "
|
|
33
|
+
"@_linked/css": "^0.2.0",
|
|
34
34
|
"@_linked/react": "^1.2",
|
|
35
35
|
"@radix-ui/react-accordion": "^1.1.2",
|
|
36
36
|
"@radix-ui/react-alert-dialog": "^1.0.5",
|
|
@@ -6,9 +6,6 @@ const dataFile = '../data/primitives.json';
|
|
|
6
6
|
const base = 'http://lincd.org/ont/radix/';
|
|
7
7
|
Prefix.add('radix', base);
|
|
8
8
|
export const loadData = () => {
|
|
9
|
-
if (typeof module !== 'undefined' && typeof exports !== 'undefined') {
|
|
10
|
-
return import(dataFile);
|
|
11
|
-
}
|
|
12
9
|
//@ts-ignore
|
|
13
10
|
return import(dataFile, { with: { type: 'json' } }).then((data) => data.default);
|
|
14
11
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"primitives.js","sourceRoot":"","sources":["../../../src/ontologies/primitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,KAAK,KAAK,MAAM,iBAAiB,CAAC;AAEzC,MAAM,QAAQ,GAAG,yBAAyB,CAAC;AAC3C,MAAM,IAAI,GAAG,6BAA6B,CAAC;AAE3C,MAAM,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AAE1B,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,EAAE;IAC3B,
|
|
1
|
+
{"version":3,"file":"primitives.js","sourceRoot":"","sources":["../../../src/ontologies/primitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,KAAK,KAAK,MAAM,iBAAiB,CAAC;AAEzC,MAAM,QAAQ,GAAG,yBAAyB,CAAC;AAC3C,MAAM,IAAI,GAAG,6BAA6B,CAAC;AAE3C,MAAM,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AAE1B,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,EAAE;IAC3B,YAAY;IACZ,OAAO,MAAM,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,IAAI,CACtD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CACvB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,EAAE,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC;AACxC,MAAM,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;AAE5B,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,KAAK;CACN,CAAC;AAEF,cAAc,CAAC,KAAK,EAAE,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC"}
|
package/lib/esm/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": ""
|
|
12
12
|
},
|
|
13
|
-
"version": "1.0.
|
|
13
|
+
"version": "1.0.8",
|
|
14
14
|
"linkedPackage": true,
|
|
15
15
|
"license": "ISC",
|
|
16
16
|
"scripts": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@_linked/core": "^2.0.1",
|
|
33
|
-
"@_linked/css": "
|
|
33
|
+
"@_linked/css": "^0.2.0",
|
|
34
34
|
"@_linked/react": "^1.2",
|
|
35
35
|
"@radix-ui/react-accordion": "^1.1.2",
|
|
36
36
|
"@radix-ui/react-alert-dialog": "^1.0.5",
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": ""
|
|
12
12
|
},
|
|
13
|
-
"version": "1.0.
|
|
13
|
+
"version": "1.0.8",
|
|
14
14
|
"linkedPackage": true,
|
|
15
15
|
"main": "lib/cjs/index.js",
|
|
16
16
|
"license": "ISC",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@_linked/core": "^2.0.1",
|
|
34
|
-
"@_linked/css": "
|
|
34
|
+
"@_linked/css": "^0.2.0",
|
|
35
35
|
"@_linked/react": "^1.2",
|
|
36
36
|
"@radix-ui/react-accordion": "^1.1.2",
|
|
37
37
|
"@radix-ui/react-alert-dialog": "^1.0.5",
|