mirror of
https://github.com/brittonhayes/validate-yaml.git
synced 2024-11-26 23:11:00 -05:00
feat: automated release w/ semantic-release
This commit is contained in:
parent
7d3ea43eec
commit
bd34dea1c8
2 changed files with 37 additions and 4 deletions
28
.github/workflows/release.yml
vendored
Normal file
28
.github/workflows/release.yml
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
name: Release
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
jobs:
|
||||
release:
|
||||
name: Release
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 'lts/*'
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn install
|
||||
|
||||
- name: Release
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.DEPENDABOT_PUBLIC_TOKEN }}
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
run: npx semantic-release
|
13
package.json
13
package.json
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "validate-yaml",
|
||||
"version": "0.0.0",
|
||||
"version": "0.0.0-development",
|
||||
"private": false,
|
||||
"description": "Validate YAML against a schema using github actions",
|
||||
"main": "dist/index.js",
|
||||
|
@ -11,11 +11,15 @@
|
|||
"lint": "eslint src/**/*.ts",
|
||||
"package": "ncc build --source-map --license licenses.txt",
|
||||
"test": "jest",
|
||||
"all": "yarn run build && yarn run format && yarn run lint && yarn run package && yarn test"
|
||||
"all": "yarn run build && yarn run format && yarn run lint && yarn run package && yarn test",
|
||||
"semantic-release": "semantic-release"
|
||||
},
|
||||
"release": {
|
||||
"branches": ["main"]
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/brittonhayes/validate-yaml.git"
|
||||
"url": "https://github.com/brittonhayes/validate-yaml.git"
|
||||
},
|
||||
"keywords": [
|
||||
"actions",
|
||||
|
@ -42,6 +46,7 @@
|
|||
"js-yaml": "^4.1.0",
|
||||
"prettier": "2.5.1",
|
||||
"ts-jest": "^27.1.2",
|
||||
"typescript": "^4.5.4"
|
||||
"typescript": "^4.5.4",
|
||||
"semantic-release": "^18.0.1"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue