Skip to content

Commit 5d0ac55

Browse files
author
Phil Sturgeon
committed
github action > circleci
also treeware and semantic release
1 parent 5ec0e1c commit 5d0ac55

File tree

7 files changed

+33
-106
lines changed

7 files changed

+33
-106
lines changed

.circleci/config.yml

Lines changed: 0 additions & 52 deletions
This file was deleted.

.github/FUNDING.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/workflows/npm-publish.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Release npm package
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
release:
10+
name: Release
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@master
14+
- uses: actions/setup-node@v1
15+
with:
16+
node-version: "12.x"
17+
- run: npm ci
18+
- run: npm run build --if-present
19+
- run: npm test
20+
- run: npx semantic-release
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/npm-test.yml renamed to .github/workflows/test.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
name: Node CI
1+
name: Tests
22

3-
on: [push]
3+
on: push
44

55
jobs:
6-
build:
7-
6+
test:
87
runs-on: ubuntu-latest
9-
108
strategy:
119
matrix:
1210
node-version: [8.x, 10.x, 12.x]
13-
1411
steps:
1512
- uses: actions/checkout@v1
1613
- name: Use Node.js ${{ matrix.node-version }}

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
A little NodeJS package to convert JSON Schema to a [OpenAPI Schema Object](http://spec.openapis.org/oas/v3.0.3.html#schema-object).
44

5+
[![Plant Tree](https://img.shields.io/badge/dynamic/json?color=brightgreen&label=Plant%20Tree&query=%24.total&url=https%3A%2F%2Fpublic.offset.earth%2Fusers%2Ftreeware%2Ftrees)](https://plant.treeware.earth/openapi-contrib/json-schema-to-openapi-schema)
6+
57
## Features
68

79
* converts JSON Schema Draft 00 Wright (a.k.a draft v5) to OpenAPI 3.0 Schema Object
@@ -85,6 +87,10 @@ To run the test-suite:
8587
npm test
8688
```
8789

90+
## Treeware
91+
92+
This package is [Treeware](https://treeware.earth). If you use it in production, then we ask that you [**buy the world a tree**](https://plant.treeware.earth/{venfor}/{package}) to thank us for our work. By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.
93+
8894
## Thanks
8995

9096
- [Stoplight][] for [donating time and effort](https://stoplight.io/blog/companies-supporting-open-source/) to this project, and many more.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "index.js",
66
"scripts": {
77
"test": "nyc --reporter=html --reporter=text mocha",
8-
"coverage": "nyc report --reporter=text-lcov | coveralls"
8+
"coverage": "nyc report --reporter=text-lcov"
99
},
1010
"repository": "github:openapi-contrib/json-schema-to-openapi-schema",
1111
"author": "OpenAPI Contrib",

0 commit comments

Comments
 (0)