From 7aee03626223fea795fa123c1590a7c1a2ec0fba Mon Sep 17 00:00:00 2001 From: vectronic Date: Tue, 26 May 2026 22:41:07 +0200 Subject: [PATCH 1/3] feat: migrate from github to npm package registry --- README.md | 37 ++----------------------------------- package.json | 3 +-- 2 files changed, 3 insertions(+), 37 deletions(-) diff --git a/README.md b/README.md index 18b97cd..1031219 100644 --- a/README.md +++ b/README.md @@ -17,48 +17,15 @@ https://github.com/MPEGGroup/mpeg-sdl-editor ### Installation -**NOTE**: `@mpeggroup/mpeg-sdl-parser` is hosted on GitHub packages, so before -installing it as a dependency, you will need to configure usage of the GitHub -package registry and setup GitHub authentication. - -Firstly, create a GitHub classic personal access token which has permission to -read packages. - **NPM** -Create an `.npmrc` file with the following content: - -``` -@mpeggroup:registry=https://npm.pkg.github.com` -``` - -Then login to the GitHub registry: - -`npm login --scope=@mpeggroup --auth-type=legacy --registry=https://npm.pkg.github.com` - -When prompted, specify: - -- Username: `` -- Password: `` - -Now you can add the module to your project: +Add the module to your project: `npm install @mpeggroup/mpeg-sdl-parser` **BUN** -Create a `bunfig.toml` file with the following content: - -``` -[install.scopes] -"@mpeggroup" = { url = "https://npm.pkg.github.com/", token = "$NPM_GITHUB_TOKEN" } -``` - -Configure the token as an environment variable: - -`export NPM_GITHUB_TOKEN=` - -Now you can add the module to your project: +Add the module to your project: `bun add @mpeggroup/mpeg-sdl-parser` diff --git a/package.json b/package.json index 7d22822..4d7a967 100644 --- a/package.json +++ b/package.json @@ -35,8 +35,7 @@ "tsconfig.json" ], "publishConfig": { - "access": "public", - "registry": "https://npm.pkg.github.com" + "access": "public" }, "devDependencies": { "@types/bun": "^1.3.13", From dcd845679b009313d0881c09f80adb0cc8303bdc Mon Sep 17 00:00:00 2001 From: vectronic Date: Tue, 26 May 2026 22:52:33 +0200 Subject: [PATCH 2/3] feat: migrate from github to npm package registry --- .github/workflows/check-bun-dependencies.yml | 1 - .github/workflows/release-bun-library.yml | 2 -- .github/workflows/validate-bun-library-pr.yml | 2 -- 3 files changed, 5 deletions(-) diff --git a/.github/workflows/check-bun-dependencies.yml b/.github/workflows/check-bun-dependencies.yml index b01ce44..6fc09af 100644 --- a/.github/workflows/check-bun-dependencies.yml +++ b/.github/workflows/check-bun-dependencies.yml @@ -11,4 +11,3 @@ jobs: uses: flowscripter/.github/.github/workflows/check-bun-dependencies.yml@v1 secrets: CREATE_PR_TOKEN: ${{ secrets.CREATE_PR_TOKEN }} - NPM_GITHUB_TOKEN: ${{ secrets.NPM_GITHUB_TOKEN }} diff --git a/.github/workflows/release-bun-library.yml b/.github/workflows/release-bun-library.yml index 0fc9685..3de7457 100644 --- a/.github/workflows/release-bun-library.yml +++ b/.github/workflows/release-bun-library.yml @@ -14,5 +14,3 @@ jobs: uses: flowscripter/.github/.github/workflows/release-bun-library.yml@v1 secrets: PUSH_TO_MAIN_TOKEN: ${{ secrets.PUSH_TO_MAIN_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_GITHUB_TOKEN }} - NPM_GITHUB_TOKEN: ${{ secrets.NPM_GITHUB_TOKEN }} diff --git a/.github/workflows/validate-bun-library-pr.yml b/.github/workflows/validate-bun-library-pr.yml index 7978325..908144f 100644 --- a/.github/workflows/validate-bun-library-pr.yml +++ b/.github/workflows/validate-bun-library-pr.yml @@ -7,5 +7,3 @@ permissions: jobs: call-validate-bun-library-pr: uses: flowscripter/.github/.github/workflows/validate-bun-library-pr.yml@v1 - secrets: - NPM_GITHUB_TOKEN: ${{ secrets.NPM_GITHUB_TOKEN }} From a2e7beec74177fed31c76aa60ce9eeeb2b458ea2 Mon Sep 17 00:00:00 2001 From: vectronic Date: Tue, 26 May 2026 23:19:46 +0200 Subject: [PATCH 3/3] fix: fix publish to npmjs --- .github/workflows/release-bun-library.yml | 1 - package.json | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-bun-library.yml b/.github/workflows/release-bun-library.yml index 3de7457..1250074 100644 --- a/.github/workflows/release-bun-library.yml +++ b/.github/workflows/release-bun-library.yml @@ -8,7 +8,6 @@ permissions: pull-requests: write id-token: write pages: write - packages: write jobs: call-release-bun-library: uses: flowscripter/.github/.github/workflows/release-bun-library.yml@v1 diff --git a/package.json b/package.json index 4d7a967..f876485 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,10 @@ { "name": "@mpeggroup/mpeg-sdl-parser", "description": "ISO/IEC 14496-34 Syntactic Description Language (MPEG SDL) parser implemented in TypeScript", - "homepage": "https://github.com/mpeggroup/mpeg-sdl-parser#readme", + "homepage": "https://github.com/MPEGGroup/mpeg-sdl-parser#readme", "repository": { "type": "git", - "url": "git+https://github.com/mpeggroup/mpeg-sdl-parser.git" + "url": "git+https://github.com/MPEGGroup/mpeg-sdl-parser.git" }, "scripts": { "build": "bun build --entrypoints ./index.ts --outdir ./dist --target node --format esm --external '@lezer/*' --external '@codemirror/*' --external 'prettier'",