From 448aa30376371269640b35590fa448ecedbec401 Mon Sep 17 00:00:00 2001 From: lookinway Date: Tue, 7 Apr 2026 12:29:56 +0300 Subject: [PATCH 1/3] fix(ci): scope Dockerfile check to docs, skip prepublishOnly on npm publish --- .github/workflows/n8n.yml | 2 +- Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/n8n.yml b/.github/workflows/n8n.yml index e498e519..43e54c99 100644 --- a/.github/workflows/n8n.yml +++ b/.github/workflows/n8n.yml @@ -176,7 +176,7 @@ jobs: env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: | - OUTPUT=$(npm publish --access public --provenance 2>&1) || { + OUTPUT=$(npm publish --access public --provenance --ignore-scripts 2>&1) || { CODE=$? if echo "$OUTPUT" | grep -q "E409\|already exists"; then echo "Version ${{ steps.version.outputs.version }} already published, skipping" diff --git a/Dockerfile b/Dockerfile index 64f6ac5a..59475026 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ RUN bun install COPY . . -RUN bun x turbo check +RUN bun x turbo check --filter=@pachca/docs RUN bun x turbo build --filter=@pachca/docs FROM oven/bun:1.3.4 AS runner From c0ab614d566e911e2118ba2b57076682f44ed4e1 Mon Sep 17 00:00:00 2001 From: lookinway Date: Tue, 7 Apr 2026 12:31:36 +0300 Subject: [PATCH 2/3] fix(ci): add --ignore-scripts to npm pack in release step --- .github/workflows/n8n.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/n8n.yml b/.github/workflows/n8n.yml index 43e54c99..ef5ffb50 100644 --- a/.github/workflows/n8n.yml +++ b/.github/workflows/n8n.yml @@ -192,7 +192,7 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - npm pack + npm pack --ignore-scripts mkdir n8n-nodes-pachca tar -xzf n8n-nodes-pachca-*.tgz --strip-components=1 -C n8n-nodes-pachca rm n8n-nodes-pachca-*.tgz From 7dc99b8b65c27c22868fed06edb8eed13b538868 Mon Sep 17 00:00:00 2001 From: lookinway Date: Tue, 7 Apr 2026 12:38:46 +0300 Subject: [PATCH 3/3] fix(ci): allow n8n publish on workflow_dispatch --- .github/workflows/n8n.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/n8n.yml b/.github/workflows/n8n.yml index ef5ffb50..54125e82 100644 --- a/.github/workflows/n8n.yml +++ b/.github/workflows/n8n.yml @@ -81,7 +81,7 @@ jobs: find nodes icons credentials \( -name '*.png' -o -name '*.svg' \) | while read f; do mkdir -p "dist/$(dirname "$f")" && cp "$f" "dist/$f"; done publish: - if: github.event_name == 'push' + if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' needs: generate-and-build runs-on: ubuntu-latest concurrency: @@ -119,6 +119,12 @@ jobs: - name: Check for publishable changes id: changes run: | + # workflow_dispatch always publishes (manual trigger = intentional) + if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then + echo "changed=true" >> $GITHUB_OUTPUT + echo "Manual dispatch — forcing publish" + exit 0 + fi # Check committed source changes (exclude tests, scripts, docs, config) COMMITTED=$(git diff --name-only HEAD~1 HEAD -- integrations/n8n/ \ | grep -v -E '^integrations/n8n/(tests/|scripts/|docs/|e2e/|eslint|tsconfig|\.gitignore|\.npmrc|vitest)' \