diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index df666fd..d3c5fa3 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -3,21 +3,14 @@ name: Node.js CI -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] +on: [push, pull_request] jobs: build: - runs-on: ubuntu-latest - strategy: matrix: - node-version: [10.x, 12.x, 14.x, 16.x] - + node-version: [10.3.0, 10, 12, 14, 16] steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} @@ -25,6 +18,5 @@ jobs: with: node-version: ${{ matrix.node-version }} - run: npm ci - - run: npm run build --if-present - run: npm run lint - run: npm test diff --git a/README.md b/README.md index 1c37640..146636a 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,9 @@ ![Node.js CI](https://github.com/ddebin/yaml-sort/workflows/Node.js%20CI/badge.svg) +[![npm version](https://badge.fury.io/js/yaml-sort.svg)](https://www.npmjs.com/package/yaml-sort) # About -`yaml-sort` is a CLI tool sorting alphabetically [YAML](https://yaml.org/) files. +`yaml-sort` sorts [YAML](https://yaml.org/) files alphabetically. This tool is basically a tiny wrapper around [js-yaml](https://github.com/nodeca/js-yaml). diff --git a/package-lock.json b/package-lock.json index 1b14dc6..f923704 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "yaml-sort", - "version": "1.1.1", + "version": "1.2.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index df174a6..90594b1 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "yaml-sort", "version": "1.2.0", - "description": "CLI tool to sort YAML files alphabetically", + "description": "Sort YAML files alphabetically", "main": "yaml-sort.js", "scripts": { "test": "test/test.js", @@ -19,9 +19,11 @@ "cli", "yaml", "yml", - "sort" + "sort", + "stream", + "shell" ], - "author": "Damien Debin", + "author": "Damien Debin ", "license": "MIT", "bugs": { "url": "https://github.com/ddebin/yaml-sort/issues" @@ -38,6 +40,6 @@ "tape-spawn": "^1.4.2" }, "engines": { - "node": ">=10" + "node": ">=10.3.0" } }