Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish package to multiple registries #3

Merged
merged 10 commits into from
Jan 26, 2024
Next Next commit
ci: publish to both ghcr and npm
npm publishing temporarily commented out
ebr committed Jan 26, 2024

Verified

This commit was signed with the committer’s verified signature.
morozov Sergei Morozov
commit 0696680773e3fb4ee5e3d2a454f1c6adf484631c
11 changes: 10 additions & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -12,6 +12,13 @@ permissions:

jobs:
build:
strategy:
matrix:
registry:
# - url: https://registry.npmjs.org
# token: ${{ secrets.NPM_TOKEN }}
- url: https://npm.pkg.github.com
token: ${{ secrets.GITHUB_TOKEN }}
runs-on: ubuntu-latest
steps:
- name: Checkout
@@ -28,6 +35,8 @@ jobs:
with:
node-version-file: '.nvmrc'
cache: pnpm
registry-url: ${{ matrix.registry.url }}
scope: "@invoke-ai"

- name: Install dependencies
run: pnpm install --frozen-lockfile
@@ -36,4 +45,4 @@ jobs:
shell: bash
run: pnpm publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ matrix.registry.token }}
1 change: 0 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
@invoke-ai:registry=https://npm.pkg.github.com
auto-install-peers=true