Skip to content

Commit

Permalink
build(INFRA-552): publish an npm package
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnzhu committed Jan 4, 2024
1 parent 46505dd commit bb11a1a
Show file tree
Hide file tree
Showing 4 changed files with 2,556 additions and 36 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
dist/
node_modules/
node_modules/
*.tgz
11 changes: 11 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
"version": "0.0.0",
"license": "MIT",
"description": "remote cache server for turbo repo",
"bin": {
"start-turbo-cache-server": "dist/bin/start_server.js"
},
"files": [
"dist/bin/*",
"dist/src/*",
"package.json",
"README.md"
],
"scripts": {
"build": "tsc",
"start": "pm2 start dist/bin/start_server.js --name turbo-cache",
Expand All @@ -29,9 +38,11 @@
"@typescript-eslint/parser": "^6.17.0",
"aws-sdk-client-mock": "^3.0.0",
"aws-sdk-client-mock-jest": "^3.0.0",
"conventional-changelog-conventionalcommits": "^5.0.0",
"eslint": "^8.56.0",
"jest": "^29.7.0",
"pm2": "^4.0.0",
"semantic-release": "^19.0.3",
"supertest": "^6.3.3",
"ts-node": "^8.0.2",
"typescript": "^5.3.2"
Expand Down
16 changes: 16 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = {
branches: ['master'],
plugins: [
['@semantic-release/commit-analyzer', { preset: 'conventionalcommits' }],
['@semantic-release/npm', { pkgRoot: 'dist/' }],
[
'@semantic-release/github',
{
// Setting this to false disables the default behavior
// of opening a GitHub issue when a release fails.
// We can enable this later if we want.
failComment: false,
},
],
],
};
Loading

0 comments on commit bb11a1a

Please sign in to comment.