Skip to content

Commit ca4272f

Browse files
committed
ci: semantic release on ci pipeline
1 parent ad0b466 commit ca4272f

File tree

3 files changed

+22
-24
lines changed

3 files changed

+22
-24
lines changed

.github/workflows/npm.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@ jobs:
4040
node-version: 15
4141
registry-url: https://registry.npmjs.org/
4242
- run: npm ci
43-
# - run: npm run semantic-release
44-
- run: npm run npm:publish
45-
# - run: npm publish --access public
43+
- run: npm run semantic-release
44+
# - run: npm run npm:publish
4645
env:
4746
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4847
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

README.md

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -79,47 +79,46 @@ import { provider } from 'mongocat';
7979

8080
const CategorySchema = new Schema(
8181
{
82-
title: String,
83-
slug: String,
84-
icon: String,
85-
status: String,
86-
87-
},{ timestamps: true });
82+
title: String,
83+
slug: String,
84+
icon: String,
85+
status: String,
86+
},
87+
{ timestamps: true }
88+
);
8889

8990
CategorySchema.plugin(
9091
provider({
91-
toRef: "Category"),
92-
keyFields: ['title' ,'slug','icon'],
93-
ignoredFields: ['status' ],
92+
toRef: 'Category',
93+
keyFields: ['title', 'slug', 'icon'],
94+
ignoredFields: ['status'],
9495
})
9596
);
9697

9798
export const Category = model('Category', CategorySchema);
98-
9999
```
100100

101101
```js
102102
import { provider } from 'mongocat';
103103

104104
const UserSchema = new Schema(
105105
{
106-
name: String,
107-
username: String,
108-
email: String,
109-
status: String,
110-
111-
},{ timestamps: true });
106+
name: String,
107+
username: String,
108+
email: String,
109+
status: String,
110+
},
111+
{ timestamps: true }
112+
);
112113

113114
UserSchema.plugin(
114115
provider({
115-
toRef: "User"),
116-
keyFields: ['name' ,'username','email', 'status']
116+
toRef: 'User',
117+
keyFields: ['name', 'username', 'email', 'status'],
117118
})
118119
);
119120

120-
121121
export const User = model('User', UserSchema);
122-
123122
```
124123

125124
#### Consumer

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "mongocat",
33
"description": "✨ Mongocat 😺 is easy to use, configuration based Denormalization mongoose plugin for read heavy applications. Mongocat reduces write complexity too.",
4-
"version": "0.0.7",
4+
"version": "0.0.0-development",
55
"license": "MIT",
66
"main": "dist/index.js",
77
"typings": "dist/index.d.ts",

0 commit comments

Comments
 (0)