diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 56a7c05..856a5d5 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -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