diff --git a/.github/workflows/n8n.yml b/.github/workflows/n8n.yml index e498e519..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)' \ @@ -176,7 +182,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" @@ -192,7 +198,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 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