Skip to content

Commit aa5398a

Browse files
committed
chore: publishing logic refactoring
1 parent f59beec commit aa5398a

File tree

16 files changed

+6579
-3
lines changed

16 files changed

+6579
-3
lines changed

.github/workflows/publish.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ jobs:
1515
uses: actions/setup-node@v3
1616
with:
1717
node-version: "20"
18-
- name: install dependencies
18+
- name: install root dependencies
1919
run: npm install
20+
- name: install publish dependencies
21+
run: cd publish && npm install
2022
- name: publish
2123
run: npm run publish
2224

@@ -28,4 +30,3 @@ jobs:
2830
client_cert_url: ${{ secrets.CLIENT_CERT_URL }}
2931
MEILISEARCH_API_KEY: ${{ secrets.MEILISEARCH_API_KEY }}
3032
MEILISEARCH_HOST: ${{ secrets.MEILISEARCH_HOST }}
31-

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "index.js",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1",
8-
"publish": "node publish/index.js"
8+
"publish": "cd publish && npm run start"
99
},
1010
"repository": {
1111
"type": "git",

publish/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules/
2+
dist/
3+
*.log
4+
.env

0 commit comments

Comments
 (0)