chore: update registry configuration from Gitea to npm
All checks were successful
Lint / lint (pull_request) Successful in 18s

This commit is contained in:
2026-03-26 16:29:34 +01:00
parent 91e608415f
commit db70f47bb7
2 changed files with 6 additions and 14 deletions

View File

@@ -62,21 +62,16 @@ jobs:
- name: Build binaries
run: bun run binaries
- name: Configure Gitea registry auth
- name: Configure npm registry auth
run: |
echo "@blas:registry=https://git.blassanto.me/api/packages/blas/npm/" >> ~/.npmrc
echo "//git.blassanto.me/api/packages/blas/npm/:_authToken=${NODE_AUTH_TOKEN}" >> ~/.npmrc
cat >> ~/.bunfig.toml << EOF
[install.scopes]
"@blas" = { registry = "https://git.blassanto.me/api/packages/blas/npm/", token = "${NODE_AUTH_TOKEN}" }
EOF
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" >> ~/.npmrc
env:
NODE_AUTH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish to Gitea registry
- name: Publish to npm registry
run: bun publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Create Gitea release and upload binaries
run: |