Setup semantic-release (#2)

* add npm ignore

* reset version

* build:  add semantic-release

* build: more ci

* ci: fix ci
This commit is contained in:
João Moreno 2022-05-18 10:25:38 +02:00 committed by GitHub
parent c42e9ee946
commit 22d1cbd514
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 10913 additions and 7 deletions

View File

@ -2,7 +2,7 @@ name: CI
on:
push:
branches: ["**"]
branches: [main]
tags: [v*]
pull_request:
branches: [main]
@ -18,3 +18,7 @@ jobs:
with:
node-version: 16
- run: npm install
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

4
.husky/commit-msg Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npx --no -- commitlint --edit "${1}"

6
.npmignore Normal file
View File

@ -0,0 +1,6 @@
.github
.vscode
build
CODE_OF_CONDUCT.md
SECURITY.md
SUPPORT.md

10883
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,11 +1,12 @@
{
"name": "vscode-policy-watcher",
"version": "1.0.0",
"version": "0.0.1",
"description": "",
"main": "index.js",
"scripts": {
"build": "node-gyp build",
"rebuild": "node-gyp rebuild"
"rebuild": "node-gyp rebuild",
"prepare": "husky install"
},
"author": "João Moreno",
"license": "MIT",
@ -18,6 +19,20 @@
"node-addon-api": "*"
},
"devDependencies": {
"node-gyp": "^9.0.0"
"@commitlint/cli": "^17.0.0",
"@commitlint/config-conventional": "^17.0.0",
"husky": "^8.0.1",
"node-gyp": "^9.0.0",
"semantic-release": "^19.0.2"
},
"release": {
"branches": [
"main"
]
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
}
}