Skip to content

Commit

Permalink
chore!: Update package names and URLs
Browse files Browse the repository at this point in the history
So that we can control release pace and versioning, we need to publish
packages to GitHub Package Registry.
  • Loading branch information
Gasol committed Aug 14, 2024
1 parent 33823df commit dc9712a
Show file tree
Hide file tree
Showing 24 changed files with 285 additions and 281 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ jobs:
name: Publish
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write # to be able to publish a GitHub release
id-token: write # to enable use of OIDC for npm provenance
issues: write # to be able to comment on released issues
packages: write # to be able to publish a GitHub package
pull-requests: write # to be able to comment on released pull requests
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -26,8 +30,8 @@ jobs:

- run: pnpm run build
- run: |
npm config set "//registry.npmjs.org/:_authToken" "${NPM_TOKEN}"
npm config set "//npm.pkg.github.com/:_authToken" "${NPM_TOKEN}"
pnpm recursive publish --access public --no-git-checks
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_CONFIG_PROVENANCE: true
20 changes: 10 additions & 10 deletions apps/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@yume-chan/adb-cli",
"name": "@gasol/adb-cli",
"private": true,
"version": "0.0.19",
"description": "Re-implement `adb`",
Expand All @@ -13,14 +13,14 @@
"email": "[email protected]",
"url": "https://chensi.moe/blog"
},
"homepage": "https://github.com/yume-chan/ya-webadb/tree/main/apps/adb-cli#readme",
"homepage": "https://github.com/Gasol/ya-webadb/tree/main/apps/adb-cli#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/yume-chan/ya-webadb.git",
"url": "git+https://github.com/Gasol/ya-webadb.git",
"directory": "apps/adb-cli"
},
"bugs": {
"url": "https://github.com/yume-chan/ya-webadb/issues"
"url": "https://github.com/Gasol/ya-webadb/issues"
},
"type": "module",
"main": "esm/index.js",
Expand All @@ -33,17 +33,17 @@
"tango-cli": "esm/index.js"
},
"dependencies": {
"@yume-chan/adb": "workspace:^0.0.24",
"@yume-chan/adb-server-node-tcp": "workspace:^0.0.24",
"@yume-chan/android-bin": "workspace:^0.0.24",
"@yume-chan/stream-extra": "workspace:^0.0.24",
"@gasol/adb": "workspace:^0.0.24",
"@gasol/adb-server-node-tcp": "workspace:^0.0.24",
"@gasol/android-bin": "workspace:^0.0.24",
"@gasol/stream-extra": "workspace:^0.0.24",
"commander": "^12.1.0",
"source-map-support": "^0.5.21"
},
"devDependencies": {
"@types/node": "^22.2.0",
"@yume-chan/eslint-config": "workspace:^1.0.0",
"@yume-chan/tsconfig": "workspace:^1.0.0",
"@gasol/eslint-config": "workspace:^1.0.0",
"@gasol/tsconfig": "workspace:^1.0.0",
"prettier": "^3.3.3",
"typescript": "^5.5.4"
}
Expand Down
16 changes: 8 additions & 8 deletions libraries/adb-credential-web/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@yume-chan/adb-credential-web",
"name": "@gasol/adb-credential-web",
"version": "0.0.24",
"description": "Credential Store for `@yume-chan/adb` using WebCrypto and IndexedDB APIs.",
"description": "Credential Store for `@gasol/adb` using WebCrypto and IndexedDB APIs.",
"keywords": [
"adb"
],
Expand All @@ -11,14 +11,14 @@
"email": "[email protected]",
"url": "https://chensi.moe/blog"
},
"homepage": "https://github.com/yume-chan/ya-webadb/tree/main/libraries/adb-credential-web#readme",
"homepage": "https://github.com/Gasol/ya-webadb/tree/main/libraries/adb-credential-web#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/yume-chan/ya-webadb.git",
"url": "git+https://github.com/Gasol/ya-webadb.git",
"directory": "libraries/adb-credential-web"
},
"bugs": {
"url": "https://github.com/yume-chan/ya-webadb/issues"
"url": "https://github.com/Gasol/ya-webadb/issues"
},
"type": "module",
"main": "esm/index.js",
Expand All @@ -30,11 +30,11 @@
"prepublishOnly": "npm run build"
},
"dependencies": {
"@yume-chan/adb": "workspace:^0.0.24"
"@gasol/adb": "workspace:^0.0.24"
},
"devDependencies": {
"@yume-chan/eslint-config": "workspace:^1.0.0",
"@yume-chan/tsconfig": "workspace:^1.0.0",
"@gasol/eslint-config": "workspace:^1.0.0",
"@gasol/tsconfig": "workspace:^1.0.0",
"prettier": "^3.3.3",
"typescript": "^5.5.4"
}
Expand Down
22 changes: 11 additions & 11 deletions libraries/adb-daemon-webusb/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@yume-chan/adb-daemon-webusb",
"name": "@gasol/adb-daemon-webusb",
"version": "0.0.24",
"description": "Adb daemon transport connection for `@yume-chan/adb` using WebUSB API.",
"description": "Adb daemon transport connection for `@gasol/adb` using WebUSB API.",
"keywords": [
"webusb",
"adb"
Expand All @@ -12,14 +12,14 @@
"email": "[email protected]",
"url": "https://chensi.moe/blog"
},
"homepage": "https://github.com/yume-chan/ya-webadb/tree/main/libraries/adb-daemon-webusb#readme",
"homepage": "https://github.com/Gasol/ya-webadb/tree/main/libraries/adb-daemon-webusb#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/yume-chan/ya-webadb.git",
"url": "git+https://github.com/Gasol/ya-webadb.git",
"directory": "libraries/adb-daemon-webusb"
},
"bugs": {
"url": "https://github.com/yume-chan/ya-webadb/issues"
"url": "https://github.com/Gasol/ya-webadb/issues"
},
"type": "module",
"main": "esm/index.js",
Expand All @@ -33,15 +33,15 @@
},
"dependencies": {
"@types/w3c-web-usb": "^1.0.10",
"@yume-chan/adb": "workspace:^0.0.24",
"@yume-chan/stream-extra": "workspace:^0.0.24",
"@yume-chan/struct": "workspace:^0.0.24"
"@gasol/adb": "workspace:^0.0.24",
"@gasol/stream-extra": "workspace:^0.0.24",
"@gasol/struct": "workspace:^0.0.24"
},
"devDependencies": {
"@types/node": "^22.2.0",
"@yume-chan/eslint-config": "workspace:^1.0.0",
"@yume-chan/test-runner": "workspace:^1.0.0",
"@yume-chan/tsconfig": "workspace:^1.0.0",
"@gasol/eslint-config": "workspace:^1.0.0",
"@gasol/test-runner": "workspace:^1.0.0",
"@gasol/tsconfig": "workspace:^1.0.0",
"prettier": "^3.3.3",
"typescript": "^5.5.4"
}
Expand Down
24 changes: 12 additions & 12 deletions libraries/adb-scrcpy/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@yume-chan/adb-scrcpy",
"name": "@gasol/adb-scrcpy",
"version": "0.0.24",
"description": "Use `@yume-chan/adb` to bootstrap `@yume-chan/scrcpy`.",
"description": "Use `@gasol/adb` to bootstrap `@gasol/scrcpy`.",
"keywords": [
"adb",
"android-phone",
Expand All @@ -13,14 +13,14 @@
"email": "[email protected]",
"url": "https://chensi.moe/blog"
},
"homepage": "https://github.com/yume-chan/ya-webadb/tree/main/packages/adb-scrcpy#readme",
"homepage": "https://github.com/Gasol/ya-webadb/tree/main/packages/adb-scrcpy#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/yume-chan/ya-webadb.git",
"url": "git+https://github.com/Gasol/ya-webadb.git",
"directory": "packages/adb-scrcpy"
},
"bugs": {
"url": "https://github.com/yume-chan/ya-webadb/issues"
"url": "https://github.com/Gasol/ya-webadb/issues"
},
"type": "module",
"main": "esm/index.js",
Expand All @@ -32,16 +32,16 @@
"prepublishOnly": "npm run build"
},
"dependencies": {
"@yume-chan/adb": "workspace:^0.0.24",
"@gasol/adb": "workspace:^0.0.24",
"@yume-chan/async": "^2.2.0",
"@yume-chan/event": "workspace:^0.0.24",
"@yume-chan/scrcpy": "workspace:^0.0.24",
"@yume-chan/stream-extra": "workspace:^0.0.24",
"@yume-chan/struct": "workspace:^0.0.24"
"@gasol/event": "workspace:^0.0.24",
"@gasol/scrcpy": "workspace:^0.0.24",
"@gasol/stream-extra": "workspace:^0.0.24",
"@gasol/struct": "workspace:^0.0.24"
},
"devDependencies": {
"@yume-chan/eslint-config": "workspace:^1.0.0",
"@yume-chan/tsconfig": "workspace:^1.0.0",
"@gasol/eslint-config": "workspace:^1.0.0",
"@gasol/tsconfig": "workspace:^1.0.0",
"prettier": "^3.3.3",
"typescript": "^5.5.4"
}
Expand Down
20 changes: 10 additions & 10 deletions libraries/adb-server-node-tcp/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@yume-chan/adb-server-node-tcp",
"name": "@gasol/adb-server-node-tcp",
"version": "0.0.24",
"description": "ADB server connector for `@yume-chan/adb` using Node.js' `net` module",
"description": "ADB server connector for `@gasol/adb` using Node.js' `net` module",
"keywords": [
"adb",
"adb-server-connection",
Expand All @@ -14,14 +14,14 @@
"email": "[email protected]",
"url": "https://chensi.moe/blog"
},
"homepage": "https://github.com/yume-chan/ya-webadb/tree/main/libraries/adb-server-node-tcp#readme",
"homepage": "https://github.com/Gasol/ya-webadb/tree/main/libraries/adb-server-node-tcp#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/yume-chan/ya-webadb.git",
"url": "git+https://github.com/Gasol/ya-webadb.git",
"directory": "libraries/adb-server-node-tcp"
},
"bugs": {
"url": "https://github.com/yume-chan/ya-webadb/issues"
"url": "https://github.com/Gasol/ya-webadb/issues"
},
"type": "module",
"main": "esm/index.js",
Expand All @@ -32,14 +32,14 @@
"lint": "run-eslint && prettier src/**/*.ts --write --tab-width 4"
},
"dependencies": {
"@yume-chan/adb": "workspace:^0.0.24",
"@yume-chan/stream-extra": "workspace:^0.0.24",
"@yume-chan/struct": "workspace:^0.0.24"
"@gasol/adb": "workspace:^0.0.24",
"@gasol/stream-extra": "workspace:^0.0.24",
"@gasol/struct": "workspace:^0.0.24"
},
"devDependencies": {
"@types/node": "^22.2.0",
"@yume-chan/eslint-config": "workspace:^1.0.0",
"@yume-chan/tsconfig": "workspace:^1.0.0",
"@gasol/eslint-config": "workspace:^1.0.0",
"@gasol/tsconfig": "workspace:^1.0.0",
"prettier": "^3.3.3",
"typescript": "^5.5.4"
}
Expand Down
22 changes: 11 additions & 11 deletions libraries/adb/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@yume-chan/adb",
"name": "@gasol/adb",
"version": "0.0.24",
"description": "TypeScript implementation of Android Debug Bridge (ADB) protocol.",
"keywords": [
Expand All @@ -12,14 +12,14 @@
"email": "[email protected]",
"url": "https://chensi.moe/blog"
},
"homepage": "https://github.com/yume-chan/ya-webadb/tree/main/libraries/adb#readme",
"homepage": "https://github.com/Gasol/ya-webadb/tree/main/libraries/adb#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/yume-chan/ya-webadb.git",
"url": "git+https://github.com/Gasol/ya-webadb.git",
"directory": "libraries/adb"
},
"bugs": {
"url": "https://github.com/yume-chan/ya-webadb/issues"
"url": "https://github.com/Gasol/ya-webadb/issues"
},
"type": "module",
"main": "esm/index.js",
Expand All @@ -33,16 +33,16 @@
},
"dependencies": {
"@yume-chan/async": "^2.2.0",
"@yume-chan/event": "workspace:^0.0.24",
"@yume-chan/no-data-view": "workspace:^0.0.24",
"@yume-chan/stream-extra": "workspace:^0.0.24",
"@yume-chan/struct": "workspace:^0.0.24"
"@gasol/event": "workspace:^0.0.24",
"@gasol/no-data-view": "workspace:^0.0.24",
"@gasol/stream-extra": "workspace:^0.0.24",
"@gasol/struct": "workspace:^0.0.24"
},
"devDependencies": {
"@types/node": "^22.2.0",
"@yume-chan/eslint-config": "workspace:^1.0.0",
"@yume-chan/test-runner": "workspace:^1.0.0",
"@yume-chan/tsconfig": "workspace:^1.0.0",
"@gasol/eslint-config": "workspace:^1.0.0",
"@gasol/test-runner": "workspace:^1.0.0",
"@gasol/tsconfig": "workspace:^1.0.0",
"prettier": "^3.3.3",
"typescript": "^5.5.4"
}
Expand Down
20 changes: 10 additions & 10 deletions libraries/android-bin/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@yume-chan/android-bin",
"name": "@gasol/android-bin",
"version": "0.0.24",
"description": "Wrappers for Android built-in executables.",
"keywords": [
Expand All @@ -12,14 +12,14 @@
"email": "[email protected]",
"url": "https://chensi.moe/blog"
},
"homepage": "https://github.com/yume-chan/ya-webadb/tree/main/libraries/android-bin#readme",
"homepage": "https://github.com/Gasol/ya-webadb/tree/main/libraries/android-bin#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/yume-chan/ya-webadb.git",
"url": "git+https://github.com/Gasol/ya-webadb.git",
"directory": "libraries/android-bin"
},
"bugs": {
"url": "https://github.com/yume-chan/ya-webadb/issues"
"url": "https://github.com/Gasol/ya-webadb/issues"
},
"type": "module",
"main": "esm/index.js",
Expand All @@ -32,15 +32,15 @@
"test": "run-test"
},
"dependencies": {
"@yume-chan/adb": "workspace:^0.0.24",
"@yume-chan/stream-extra": "workspace:^0.0.24",
"@yume-chan/struct": "workspace:^0.0.24"
"@gasol/adb": "workspace:^0.0.24",
"@gasol/stream-extra": "workspace:^0.0.24",
"@gasol/struct": "workspace:^0.0.24"
},
"devDependencies": {
"@types/node": "^22.2.0",
"@yume-chan/eslint-config": "workspace:^1.0.0",
"@yume-chan/test-runner": "workspace:^1.0.0",
"@yume-chan/tsconfig": "workspace:^1.0.0",
"@gasol/eslint-config": "workspace:^1.0.0",
"@gasol/test-runner": "workspace:^1.0.0",
"@gasol/tsconfig": "workspace:^1.0.0",
"prettier": "^3.3.3",
"typescript": "^5.5.4"
}
Expand Down
12 changes: 6 additions & 6 deletions libraries/aoa/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@yume-chan/aoa",
"name": "@gasol/aoa",
"version": "0.0.24",
"description": "TypeScript implementation of Android Open Accessory protocol.",
"keywords": [
Expand All @@ -12,14 +12,14 @@
"email": "[email protected]",
"url": "https://chensi.moe/blog"
},
"homepage": "https://github.com/yume-chan/ya-webadb/tree/main/packages/aoa#readme",
"homepage": "https://github.com/Gasol/ya-webadb/tree/main/packages/aoa#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/yume-chan/ya-webadb.git",
"url": "git+https://github.com/Gasol/ya-webadb.git",
"directory": "packages/aoa"
},
"bugs": {
"url": "https://github.com/yume-chan/ya-webadb/issues"
"url": "https://github.com/Gasol/ya-webadb/issues"
},
"type": "module",
"main": "esm/index.js",
Expand All @@ -34,8 +34,8 @@
"@types/w3c-web-usb": "^1.0.10"
},
"devDependencies": {
"@yume-chan/eslint-config": "workspace:^1.0.0",
"@yume-chan/tsconfig": "workspace:^1.0.0",
"@gasol/eslint-config": "workspace:^1.0.0",
"@gasol/tsconfig": "workspace:^1.0.0",
"prettier": "^3.3.3",
"typescript": "^5.5.4"
}
Expand Down
Loading

0 comments on commit dc9712a

Please sign in to comment.