Skip to content

Commit

Permalink
ci: publish to both ghcr and npm
Browse files Browse the repository at this point in the history
npm publishing temporarily commented out
  • Loading branch information
ebr committed Jan 26, 2024
1 parent 7eaace1 commit 0696680
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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

0 comments on commit 0696680

Please sign in to comment.