Skip to content

Commit 6e26953

Browse files
committed
add prepublish script to github action instead of package.json
1 parent 25053c6 commit 6e26953

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
node-version: '12.x'
1717
registry-url: 'https://npm.pkg.github.com'
1818
- run: yarn
19+
- run: yarn build
1920
- run: yarn publish
2021
env:
2122
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@internxt/lib",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Common logic shared between different projects of Internxt ",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
@@ -10,8 +10,7 @@
1010
"build": "tsc",
1111
"lint": "eslint src/**/*.ts",
1212
"format": "prettier src/**/*.ts",
13-
"prepare": "husky install",
14-
"prepublish": "yarn build"
13+
"prepare": "husky install"
1514
},
1615
"repository": {
1716
"type": "git",

0 commit comments

Comments
 (0)