diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..e707e2a --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,19 @@ +name: Semantic Release +on: + push: + branches: + - master +jobs: + release: + name: Release + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: lts/* + - run: npm ci + - env: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + run: npx semantic-release diff --git a/README.md b/README.md index 7da7325..040a4a6 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # jsonlint -[![Node.js CI status](https://github.com/fengzilong/@biu/jsonlint/workflows/Node.js%20CI/badge.svg)](https://github.com/fengzilong/@biu/jsonlint/actions) +[![Node.js CI status](https://github.com/fengzilong/@biu/jsonlint/workflows/Node.js%20CI/badge.svg)](https://github.com/fengzilong/@biu/jsonlint/actions) [![npm](https://img.shields.io/npm/v/@biu/jsonlint.svg)](https://www.npmjs.com/package/@biu/jsonlint) lint your json, report all errors at once