Skip to content

Commit

Permalink
ci: update publish workflow to use ghcr, trigger on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
psychedelicious committed Jan 25, 2024
1 parent 43c88f1 commit 1880a82
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
name: Publish package

on:
release:
types: [published]
push:
tags:
- 'v*.*.*'

permissions:
contents: read
packages: write

jobs:
build:
Expand All @@ -22,7 +27,8 @@ jobs:
with:
node-version-file: '.nvmrc'
cache: pnpm
registry-url: https://registry.npmjs.org
registry-url: 'https://npm.pkg.github.com'
scope: '@invoke-ai'

- name: Install dependencies
run: pnpm install --frozen-lockfile
Expand All @@ -31,4 +37,4 @@ jobs:
shell: bash
run: pnpm publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 1880a82

Please sign in to comment.