Skip to content

Commit

Permalink
Add publish to github private packages
Browse files Browse the repository at this point in the history
  • Loading branch information
buptsb committed Oct 17, 2022
1 parent 651ab95 commit bf85e1d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ jobs:
node-version: '16'
cache: 'npm'

- name: clone jpegjs
run: git submodule sync --recursive

- name: install dependencies
run: npm ci

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"test:karma:headless": "karma start ./karma.config.cjs --headless",
"dev": "webpack --watch --config ./webpack.dev.cjs",
"build": "webpack --config ./webpack.prod.cjs",
"publish": "cd packages/jpeg-file && npm publish",
"perf": "karma start ./karma.config.cjs --perf"
}
}
4 changes: 4 additions & 0 deletions packages/jpeg-file/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
},
"devDependencies": {
},
"publishConfig": {
"registry": "https://npm.pkg.github.com/zckevin"
},
"repository": "https://github.com/zckevin/npm-repos",
"scripts": {
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/units/file.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ test("Downloadfile Readv", async () => {
await fn(4, 2);
// fileSize % chunkSize != 0
await fn(5, 2);
}, 60_000);
}, 120_000);

test("Download with short desc", async () => {
const fileSize = 10, chunkSize = 3;
Expand Down

0 comments on commit bf85e1d

Please sign in to comment.