Skip to content

Commit

Permalink
ci: prep for release
Browse files Browse the repository at this point in the history
  • Loading branch information
kevbaldwyn committed Dec 20, 2020
1 parent 02ddac6 commit 1a17072
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 5 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release
on:
push:
branches:
- master
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install dependencies
run: npm install
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
13 changes: 9 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"name": "ts-valueobjects",
"version": "0.1.0",
"description": "Typescript typesafe Value Objects made easy",
"version": "0.0.0-development",
"description": "Typescript typesafe Value Objects and Domain Value Objects made easy",
"keywords": [
"typescript",
"value objects"
"value objects",
"ddd",
"domain objects"
],
"author": {
"name": "Kevin Baldwyn",
Expand Down Expand Up @@ -33,7 +35,9 @@
"test:watch": "jest --watch",
"test:mutations": "stryker run",
"upgrade": "npx npm-check -u",
"version": "npm run build && npm run changelog:update"
"version": "npm run build && npm run changelog:update",
"prepare": "npm test && npm run build",
"semantic-release": "semantic-release"
},
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^1.0.1",
Expand All @@ -58,6 +62,7 @@
"jest": "^26.6.3",
"prettier": "2.2.1",
"prettier-eslint": "^12.0.0",
"semantic-release": "^17.3.0",
"source-map-support": "^0.5.12",
"ts-jest": "^26.4.4",
"ts-node": "^9.0.0",
Expand Down
5 changes: 5 additions & 0 deletions src/Scalars/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export * from "./BooleanScalar";
export * from "./FloatScalar";
export * from "./IntegerScalar";
export * from "./NullScalar";
export * from "./StringScalar";
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from "./Scalars";
export * from "./ValueObject";
export * from "./EnumValueObject";
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
},
"exclude": [ "node_modules", "test", "types" ]
"exclude": [ "node_modules", "test", "types", "dist" ]
}

0 comments on commit 1a17072

Please sign in to comment.