Skip to content

Commit

Permalink
ci: update publish script
Browse files Browse the repository at this point in the history
- Workaround for upstream pnpm issue when changing registry for a previously installed package
- Remove `continue-on-error`
  • Loading branch information
psychedelicious committed Jan 27, 2024
1 parent b79e0bb commit 84b61e7
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,24 @@ jobs:
registry-url: ${{ matrix.registry.url }}
scope: '@invoke-ai'

# TODO: remove when https://github.com/pnpm/pnpm/issues/7579 is resolved
- name: Reinstall @invoke-ai packages
shell: bash
run: |
VERSION_ESLINT=$(node -p "require('./package.json').devDependencies['@invoke-ai/eslint-config-react']")
VERSION_PRETTIER=$(node -p "require('./package.json').devDependencies['@invoke-ai/prettier-config-react']")
pnpm uninstall @invoke-ai/eslint-config-react @invoke-ai/prettier-config-react
pnpm install --ignore-scripts -D @invoke-ai/eslint-config-react@$VERSION_ESLINT -D @invoke-ai/prettier-config-react@$VERSION_PRETTIER
env:
NODE_AUTH_TOKEN: ${{ secrets[matrix.registry.token_secret] }}

- name: Install dependencies
run: pnpm install --frozen-lockfile --ignore-scripts
env:
NODE_AUTH_TOKEN: ${{ secrets[matrix.registry.token_secret] }}

- name: Version bump
- name: Version bump (prepatch)
# only if manual workflow dispatch and not on a tag
if: github.event_name == 'workflow_dispatch' && !startsWith(github.ref, 'refs/tags/')
run: npm version prepatch --preid=$(git rev-parse --short HEAD) --no-git-tag-version
Expand Down

0 comments on commit 84b61e7

Please sign in to comment.