Skip to content

Commit 3508991

Browse files
committed
feat: Add GitHub Actions workflow for automated package publishing and configure TypeScript for testing.
1 parent bfa9a75 commit 3508991

File tree

9 files changed

+43
-73
lines changed

9 files changed

+43
-73
lines changed

.github/workflows/onRelease.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
contents: read
1212
id-token: write
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v6
1515
with:
1616
persist-credentials: false
1717
- uses: pnpm/action-setup@v4
@@ -23,8 +23,9 @@ jobs:
2323
with:
2424
node-version: 20
2525
cache: "pnpm"
26+
registry-url: "https://registry.npmjs.org"
2627
- run: pnpm install
2728
- run: pnpm run build
2829
- run: pnpm run prepack
29-
- uses: JS-DevTools/npm-publish@v4
30+
- run: npm publish
3031
- run: pnpm run postpack

package.json

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@promactinfo/moa-plugin-hubspot",
33
"description": "Hubspot provider for moa cli",
4-
"version": "0.1.3",
4+
"version": "0.1.4",
55
"author": "Chintan Shah",
66
"bin": {
77
"hubspot": "./bin/run.js"
@@ -34,17 +34,26 @@
3434
"engines": {
3535
"node": ">=18.0.0"
3636
},
37-
"files": ["./bin", "./dist", "./oclif.manifest.json"],
37+
"files": [
38+
"./bin",
39+
"./dist",
40+
"./oclif.manifest.json"
41+
],
3842
"homepage": "https://github.com/Promact/moa-plugin-hubspot",
39-
"keywords": ["oclif"],
43+
"keywords": [
44+
"oclif"
45+
],
4046
"license": "MIT",
4147
"main": "dist/index.js",
4248
"type": "module",
4349
"oclif": {
4450
"bin": "hubspot",
4551
"dirname": "hubspot",
4652
"commands": "./dist/commands",
47-
"plugins": ["@oclif/plugin-help", "@oclif/plugin-plugins"],
53+
"plugins": [
54+
"@oclif/plugin-help",
55+
"@oclif/plugin-plugins"
56+
],
4857
"topicSeparator": " ",
4958
"topics": {
5059
"hello": {
@@ -66,4 +75,4 @@
6675
"version": "oclif readme && git add README.md"
6776
},
6877
"types": "dist/index.d.ts"
69-
}
78+
}

src/commands/hello/index.ts

Lines changed: 0 additions & 29 deletions
This file was deleted.

src/commands/hello/world.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

test/commands/hello/index.test.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

test/commands/hello/world.test.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

tsconfig.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"compilerOptions": {
3+
"composite": true,
34
"declaration": true,
45
"module": "Node16",
56
"outDir": "dist",
@@ -8,8 +9,10 @@
89
"target": "es2022",
910
"moduleResolution": "node16"
1011
},
11-
"include": ["./src/**/*"],
12+
"include": [
13+
"./src/**/*"
14+
],
1215
"ts-node": {
1316
"esm": true
1417
}
15-
}
18+
}

tsconfig.test.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"noEmit": true,
5+
"rootDir": ".",
6+
"types": [
7+
"node",
8+
"mocha",
9+
"chai",
10+
"sinon"
11+
]
12+
},
13+
"include": [
14+
"test/**/*.ts",
15+
"src/**/*.ts"
16+
],
17+
"exclude": [
18+
"node_modules",
19+
"dist"
20+
]
21+
}

tsconfig.tsbuildinfo

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)