Skip to content

Commit 156309b

Browse files
committed
Update npm configuration and package settings
- Added GitHub npm registry configuration to .npmrc for Coderty. - Updated changeset config to reflect new repository ownership. - Marked several astro-embed packages as private in their package.json files. - Adjusted release workflow to check for Coderty as the repository owner. - Updated version for @coderty/astro-embed-youtube to 0.5.10 and added publishConfig for GitHub registry.
1 parent b92ce09 commit 156309b

13 files changed

Lines changed: 32 additions & 20 deletions

File tree

‎.changeset/config.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
"$schema": "https://unpkg.com/@changesets/config@2.0.0/schema.json",
33
"changelog": [
44
"@changesets/changelog-github",
5-
{ "repo": "astro-community/astro-embed" }
5+
{ "repo": "Coderty/astro-embed" }
66
],
77
"commit": false,
88
"fixed": [],
99
"linked": [],
1010
"access": "public",
1111
"baseBranch": "main",
1212
"updateInternalDependencies": "patch",
13-
"ignore": ["@astro-community/astro-embed-demo", "@astro-community/astro-embed-docs"]
13+
"ignore": ["@astro-community/astro-embed-demo", "@astro-community/astro-embed-docs", "@astro-community/astro-embed-baseline-status", "@astro-community/astro-embed-bluesky", "@astro-community/astro-embed-integration", "@astro-community/astro-embed-link-preview", "@astro-community/astro-embed-twitter", "@astro-community/astro-embed-utils", "@astro-community/astro-embed-vimeo", "astro-embed"]
1414
}

‎.github/workflows/release.yml‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}
1111
jobs:
1212
release:
1313
name: Release
14-
if: ${{ github.repository_owner == 'delucis' }}
14+
if: ${{ github.repository_owner == 'Coderty' }}
1515
runs-on: ubuntu-latest
1616
permissions:
1717
contents: write
1818
pull-requests: write
19-
id-token: write
19+
packages: write
2020
env:
2121
NODE_VERSION: 24.11.0
2222
steps:
@@ -29,14 +29,15 @@ jobs:
2929
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
3030
with:
3131
node-version: ${{ env.NODE_VERSION }}
32+
registry-url: 'https://npm.pkg.github.com'
3233
cache: pnpm
3334
- run: pnpm i
3435

35-
- name: Create Release Pull Request
36+
- name: Create Release Pull Request or Publish
3637
uses: changesets/action@e0145edc7d9d8679003495b11f87bd8ef63c0cba # v1.5.3
3738
with:
3839
version: pnpm ci:version
3940
publish: pnpm changeset publish
4041
env:
4142
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42-
NPM_TOKEN: "" # See https://github.com/changesets/changesets/issues/1152#issuecomment-3190884868
43+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

‎.npmrc‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
prefer-workspace-packages=true
22
link-workspace-packages=true
3+
4+
@coderty:registry=https://npm.pkg.github.com
5+
//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}

‎packages/astro-embed-baseline-status/package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,6 @@
2929
},
3030
"peerDependencies": {
3131
"astro": "^4.0.0-beta || ^5.0.0-beta"
32-
}
32+
},
33+
"private": true
3334
}

‎packages/astro-embed-bluesky/package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,6 @@
3535
"dependencies": {
3636
"@atproto/api": "^0.13.14",
3737
"ts-pattern": "^5.5.0"
38-
}
38+
},
39+
"private": true
3940
}

‎packages/astro-embed-dailymotion/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"url": "https://github.com/coderty/astro-embed/issues"
3232
},
3333
"homepage": "https://astro-embed.netlify.app/components/dailymotion/",
34-
"peerDependencies": {
35-
"astro": "^2.0.0 || ^3.0.0-beta || ^4.0.0-beta || ^5.0.0-beta"
34+
"publishConfig": {
35+
"registry": "https://npm.pkg.github.com"
3636
}
3737
}

‎packages/astro-embed-integration/package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,6 @@
3434
},
3535
"peerDependencies": {
3636
"astro": "^2.0.0 || ^3.0.0-beta || ^4.0.0-beta || ^5.0.0-beta"
37-
}
37+
},
38+
"private": true
3839
}

‎packages/astro-embed-link-preview/package.json‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@astro-community/astro-embed-link-preview",
33
"version": "0.2.3",
4-
"description": "Component to embed a website’s OpenGraph image and metadata on your Astro site",
4+
"description": "Component to embed a website\u2019s OpenGraph image and metadata on your Astro site",
55
"type": "module",
66
"exports": {
77
".": "./index.ts",
@@ -32,5 +32,6 @@
3232
"homepage": "https://astro-embed.netlify.app/components/link-preview/",
3333
"dependencies": {
3434
"@astro-community/astro-embed-utils": "^0.1.5"
35-
}
35+
},
36+
"private": true
3637
}

‎packages/astro-embed-twitter/package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,6 @@
3636
},
3737
"peerDependencies": {
3838
"astro": "^2.0.0 || ^3.0.0-beta || ^4.0.0-beta || ^5.0.0-beta"
39-
}
39+
},
40+
"private": true
4041
}

‎packages/astro-embed-utils/package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@
2121
"homepage": "https://github.com/delucis/astro-embed/tree/main/packages/astro-embed-utils#readme",
2222
"dependencies": {
2323
"linkedom": "^0.18.12"
24-
}
24+
},
25+
"private": true
2526
}

0 commit comments

Comments
 (0)