Skip to content

Commit 1406fa1

Browse files
committed
Updating package.json for npm publishing, and adding workflow to do it
1 parent 3218827 commit 1406fa1

File tree

2 files changed

+42
-6
lines changed

2 files changed

+42
-6
lines changed

.github/workflows/release.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
2+
3+
name: Release SearchAPI.io n8n nodes
4+
5+
on:
6+
release:
7+
types: [published]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- uses: pnpm/action-setup@v2
17+
name: Install pnpm
18+
with:
19+
version: 8
20+
run_install: false
21+
22+
- name: Install Node.js
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version-file: "package.json"
26+
cache: pnpm
27+
registry-url: https://registry.npmjs.org
28+
29+
- name: Install dependencies
30+
run: pnpm install --frozen-lockfile
31+
32+
- name: Publish 🚀
33+
shell: bash
34+
run: pnpm publish packages/components --access public --no-git-checks
35+
env:
36+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
2-
"name": "n8n-nodes-searchapi",
3-
"version": "0.1.0",
4-
"description": "",
2+
"name": "@searchapi/n8n-nodes-searchapi",
3+
"version": "1.0.0",
4+
"description": "SearchAPI.io nodes for n8n",
55
"keywords": [
66
"n8n-community-node-package"
77
],
88
"license": "MIT",
9-
"homepage": "",
9+
"homepage": "https://www.searchapi.io",
1010
"author": {
11-
"name": "",
12-
"email": ""
11+
"name": "SearchAPI",
12+
"email": "[email protected]"
1313
},
1414
"repository": {
1515
"type": "git",

0 commit comments

Comments
 (0)