diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5f2d257..19b7f5e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,23 +1,27 @@ name: Publish to NPM on: - release: - types: [published] + push: + tags: + - 'v*' + workflow_dispatch: jobs: publish: runs-on: ubuntu-latest + if: startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch' permissions: contents: read id-token: write steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: - node-version: '22' + node-version: '24' registry-url: 'https://registry.npmjs.org' + package-manager-cache: false - run: npm ci - run: npm run build - - run: npm publish --provenance --access public \ No newline at end of file + - run: npm publish --provenance --access public diff --git a/nodes/Browserbase/Browserbase.node.ts b/nodes/Browserbase/Browserbase.node.ts index 5fb2ab6..38dc4f6 100644 --- a/nodes/Browserbase/Browserbase.node.ts +++ b/nodes/Browserbase/Browserbase.node.ts @@ -1169,6 +1169,7 @@ export class Browserbase implements INodeType { {}, ); } catch (cleanupError) { + // Best-effort session close after an error; ignore cleanup failures. void cleanupError; } } diff --git a/package-lock.json b/package-lock.json index fd7c2d9..71df801 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "n8n-nodes-browserbase", - "version": "1.3.0", + "version": "1.3.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "n8n-nodes-browserbase", - "version": "1.3.0", + "version": "1.3.1", "license": "MIT", "devDependencies": { "@n8n/node-cli": "*", diff --git a/package.json b/package.json index af93681..17d757a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "n8n-nodes-browserbase", - "version": "1.3.0", + "version": "1.3.1", "description": "n8n community node for Browserbase agent, search, and fetch workflows", "license": "MIT", "homepage": "https://github.com/browserbase/n8n-node", @@ -13,7 +13,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/browserbase/n8n-node" + "url": "git+https://github.com/browserbase/n8n-node.git" }, "scripts": { "build": "n8n-node build",