mirror of
https://github.com/VSCodium/policy-watcher.git
synced 2025-12-10 03:53:55 -06:00
Setup semantic-release (#2)
* add npm ignore
* reset version
* build: ✨ add semantic-release
* build: more ci
* ci: fix ci
This commit is contained in:
parent
c42e9ee946
commit
22d1cbd514
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@ -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
4
.husky/commit-msg
Normal file
@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
. "$(dirname -- "$0")/_/husky.sh"
|
||||
|
||||
npx --no -- commitlint --edit "${1}"
|
||||
6
.npmignore
Normal file
6
.npmignore
Normal file
@ -0,0 +1,6 @@
|
||||
.github
|
||||
.vscode
|
||||
build
|
||||
CODE_OF_CONDUCT.md
|
||||
SECURITY.md
|
||||
SUPPORT.md
|
||||
10883
package-lock.json
generated
10883
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
21
package.json
21
package.json
@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user