Skip to content
This repository was archived by the owner on Jun 15, 2024. It is now read-only.

Commit b591bd9

Browse files
committed
chore(semantic-release): add semantic-release
1 parent 58ca3cf commit b591bd9

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

package.json

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"name": "nativescript-pdf-view",
3-
"version": "1.0.0",
43
"description": "A NativeScript plugin to display PDF files on iOS and Android",
54
"main": "src/plugin.js",
65
"nativescript": {
@@ -15,8 +14,15 @@
1514
"demo.android": "npm run preparedemo && cd demo && tns run android",
1615
"preparedemo": "npm run build && cd demo && tns plugin remove nativescript-pdf-view && tns plugin add .. && tns install",
1716
"prepublish": "npm run build",
17+
"semantic-release": "./node_modules/.bin/semantic-release pre && npm publish && ./node_modules/.bin/semantic-release post",
1818
"setup": "npm install && cd demo && npm install && cd .. && npm run build && cd demo && tns plugin add .. && cd .."
1919
},
20+
"release": {
21+
"generateNotes": "./node_modules/@semantic-release/release-notes-generator",
22+
"verifyConditions": [
23+
"./node_modules/@semantic-release/condition-codeship"
24+
]
25+
},
2026
"repository": {
2127
"type": "git",
2228
"url": "https://github.com/Merott/nativescript-pdf-view.git"
@@ -39,6 +45,9 @@
3945
"license": "MIT",
4046
"homepage": "https://github.com/Merott/nativescript-pdf-view",
4147
"devDependencies": {
48+
"@semantic-release/condition-codeship": "1.1.0",
49+
"@semantic-release/release-notes-generator": "2.0.0",
50+
"semantic-release": "4.3.5",
4251
"tns-core-modules": "2.2.0-2016-07-14-3692",
4352
"tns-platform-declarations": "2.0.0",
4453
"tslint": "3.13.0",

0 commit comments

Comments
 (0)