diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 416b4a2..f90180d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -11,6 +11,7 @@ jobs: permissions: contents: read id-token: write + packages: write steps: - name: Checkout code uses: actions/checkout@v6 @@ -21,6 +22,7 @@ jobs: - name: Configure npm authentication run: | echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc + echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> ~/.npmrc - name: Install NPM dependencies run: bun install @@ -31,3 +33,9 @@ jobs: - name: Release General Codes run: npm publish --access public working-directory: ./packages/general-codes + + # Dual-publish na GH Packages — sjednocuje @develit-io scope pro konzumenty + # s bunfig scope → npm.pkg.github.com. + - name: Release General Codes to GitHub Packages + run: npm publish --registry https://npm.pkg.github.com + working-directory: ./packages/general-codes diff --git a/packages/general-codes/package.json b/packages/general-codes/package.json index cad683d..5412b20 100644 --- a/packages/general-codes/package.json +++ b/packages/general-codes/package.json @@ -4,6 +4,10 @@ "description": "General Codes", "author": "Develit.io", "license": "ISC", + "repository": { + "type": "git", + "url": "git+https://github.com/develit-io/general-codes.git" + }, "type": "module", "scripts": { "build": "unbuild",