@_linked/primitives 1.0.7 → 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.
@@ -43,6 +43,7 @@ jobs:
43
43
  run: npm run build
44
44
 
45
45
  - name: Create release Pull Request or Publish
46
+ id: changesets
46
47
  uses: changesets/action@v1
47
48
  with:
48
49
  publish: npx changeset publish
@@ -52,3 +53,25 @@ jobs:
52
53
  GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
53
54
  NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
54
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."
@@ -10,7 +10,7 @@
10
10
  "type": "git",
11
11
  "url": ""
12
12
  },
13
- "version": "1.0.7",
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",
@@ -10,7 +10,7 @@
10
10
  "type": "git",
11
11
  "url": ""
12
12
  },
13
- "version": "1.0.7",
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.7",
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",