Skip to content

Commit ea47383

Browse files
authored
Merge pull request #14 from lumio/feature/9-publish
Feature/9 publish
2 parents 8d2c6e1 + 8596143 commit ea47383

6 files changed

Lines changed: 41 additions & 6 deletions

File tree

.editorconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_size = 2
8+
indent_style = space

.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
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v1
13+
with:
14+
node-version: '14.x'
15+
registry-url: 'https://registry.npmjs.org'
16+
- run: npm install
17+
- run: npm publish
18+
env:
19+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.idea
12
node_modules
23
/package-lock.json
34
/bin

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Install
77
---
88

99
```
10-
npm install -g git+ssh://<git clone url>
10+
npm install -g semci
1111
```
1212

1313
Usage

package.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
11
{
22
"name": "semci",
3-
"version": "0.1.0",
3+
"version": "0.1.2",
44
"description": "Git helper to create semver commits and name branches accordingly",
55
"main": "bin/index.js",
66
"bin": {
77
"semci": "bin/index.js"
88
},
99
"scripts": {
1010
"test": "echo \"Error: no test specified\" && exit 1",
11-
"build": "tsc && cp package.json bin/ && chmod +x bin/index.js"
11+
"prepare": "npm run build",
12+
"build": "rm -rf bin; tsc && cp package.json bin/ && chmod +x bin/index.js"
1213
},
13-
"author": "",
14-
"license": "ISC",
14+
"author": "Benjamin Falk <lumio@lumio.at> (https://lumio.at/)",
15+
"bugs": "https://github.com/lumio/semci/issues",
16+
"license": "GPL-3.0-only",
17+
"files": [
18+
"bin/**/*"
19+
],
1520
"dependencies": {
1621
"change-case": "3.1.0",
1722
"commander": "3.0.2",
@@ -23,6 +28,7 @@
2328
"@types/commander": "2.12.2",
2429
"@types/node": "14.0.14",
2530
"@types/prompts": "2.0.8",
31+
"ts-node": "^9.1.1",
2632
"typescript": "3.9.5"
2733
}
2834
}

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@
1919
"esModuleInterop": true,
2020
"skipLibCheck": true,
2121
"forceConsistentCasingInFileNames": true
22-
}
22+
},
23+
"include": ["src/**/*"]
2324
}

0 commit comments

Comments
 (0)