Skip to content

Commit 37b90a6

Browse files
committed
autopublish
1 parent 6001dbf commit 37b90a6

3 files changed

Lines changed: 55 additions & 7 deletions

File tree

.github/workflows/publish.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Publish to npmjs
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-node@v3
13+
with:
14+
node-version: 16
15+
registry-url: https://registry.npmjs.org/
16+
- run: npm install
17+
- run: npm publish
18+
env:
19+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.npmignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
node_modules/
2+
.env
3+
.gitignore
4+
.git/
5+
.github/
6+
.vscode/
7+
SECURITY.md
8+
CODE_OF_CONDUCT.md
9+
CONTRIBUTING.md
10+
LINCENSE

package.json

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,43 @@
33
"version": "1.0.0",
44
"description": "A REST API for managing a book collection",
55
"main": "server.js",
6+
"type": "module",
67
"scripts": {
78
"start": "node server.js",
89
"dev": "nodemon server.js"
910
},
11+
"keywords": [
12+
"rest",
13+
"api",
14+
"book",
15+
"library",
16+
"mongodb",
17+
"express",
18+
"nodejs",
19+
"restful",
20+
"book-management"
21+
],
22+
"author": "Necoti Dev",
23+
"license": "MIT",
24+
"repository": {
25+
"type": "git",
26+
"url": "git+https://github.com/Nec0ti/LibrisAPI.git"
27+
},
28+
"bugs": {
29+
"url": "https://github.com/Nec0ti/LibrisAPI/issues"
30+
},
31+
"homepage": "https://github.com/Nec0ti/LibrisAPI#readme",
1032
"dependencies": {
11-
"bcryptjs": "^3.0.2",
33+
"bcryptjs": "^2.4.3",
1234
"cors": "^2.8.5",
1335
"dotenv": "^16.3.1",
1436
"express": "^4.18.2",
1537
"express-rate-limit": "^7.5.0",
1638
"jsonwebtoken": "^9.0.2",
17-
"mongoose": "^8.12.1",
39+
"mongoose": "^8.1.1",
1840
"joi": "^17.13.3"
1941
},
2042
"devDependencies": {
2143
"nodemon": "^3.0.2"
22-
},
23-
"keywords": [],
24-
"author": "",
25-
"license": "ISC"
26-
}
44+
}
45+
}

0 commit comments

Comments
 (0)