@_linked/org 1.0.1 → 1.0.2

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.
@@ -8,23 +8,36 @@ on:
8
8
  jobs:
9
9
  build-and-test:
10
10
  name: Build & Test
11
- # Skip CI on the automated Release PR created by changesets/action.
12
- if: ${{ !(github.event.pull_request.base.ref == 'main' && github.head_ref == 'changeset-release/main') }}
13
11
  runs-on: ubuntu-latest
14
12
  steps:
13
+ - name: Detect Release PR
14
+ id: rpr
15
+ run: |
16
+ if [[ "${{ github.event.pull_request.head.ref }}" == "changeset-release/main" ]]; then
17
+ echo "is_release_pr=true" >> $GITHUB_OUTPUT
18
+ echo "Release PR from changesets/action detected — skipping build/test (auto-generated version+CHANGELOG only)."
19
+ else
20
+ echo "is_release_pr=false" >> $GITHUB_OUTPUT
21
+ fi
22
+
15
23
  - name: Checkout
24
+ if: steps.rpr.outputs.is_release_pr == 'false'
16
25
  uses: actions/checkout@v4
17
26
 
18
27
  - name: Setup Node.js
28
+ if: steps.rpr.outputs.is_release_pr == 'false'
19
29
  uses: actions/setup-node@v4
20
30
  with:
21
31
  node-version: 22.16.0
22
32
 
23
33
  - name: Install dependencies
34
+ if: steps.rpr.outputs.is_release_pr == 'false'
24
35
  run: npm ci --legacy-peer-deps
25
36
 
26
37
  - name: Build
38
+ if: steps.rpr.outputs.is_release_pr == 'false'
27
39
  run: npm run build
28
40
 
29
41
  - name: Test
42
+ if: steps.rpr.outputs.is_release_pr == 'false'
30
43
  run: npm test --if-present
@@ -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
@@ -37,6 +49,6 @@ jobs:
37
49
  title: 'chore: release'
38
50
  commit: 'chore: release'
39
51
  env:
40
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52
+ GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
41
53
  NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
42
54
  NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @\_linked/org
2
2
 
3
+ ## 1.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#3](https://github.com/linked-cm/org/pull/3) [`997ce76`](https://github.com/linked-cm/org/commit/997ce7647c5d194193d6d0e85d9d731b5ab26498) 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.1
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "type": "git",
11
11
  "url": ""
12
12
  },
13
- "version": "1.0.1",
13
+ "version": "1.0.2",
14
14
  "linkedPackage": true,
15
15
  "main": "lib/index.js",
16
16
  "types": "dist/lincd-org.d.ts",
@@ -59,11 +59,11 @@
59
59
  },
60
60
  "devDependencies": {
61
61
  "@_linked/cli": "^1.2",
62
+ "@changesets/changelog-github": "^0.5.2",
63
+ "@changesets/cli": "^2.29.8",
62
64
  "@types/node": "^22.13.14",
63
65
  "tsconfig-to-dual-package": "^1.2.0",
64
- "typescript": "5.7.3",
65
- "@changesets/cli": "^2.29.8",
66
- "@changesets/changelog-github": "^0.5.2"
66
+ "typescript": "5.7.3"
67
67
  },
68
68
  "publishConfig": {
69
69
  "access": "public"