Skip to content
This repository was archived by the owner on Mar 28, 2022. It is now read-only.

Commit daf9a02

Browse files
authored
Merge pull request #98 from mocks-server/release
Release v2.1.0
2 parents 7d7a2a0 + 34aa2bb commit daf9a02

15 files changed

+582
-309
lines changed

.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"es6": true
55
},
66
"parserOptions": {
7-
"ecmaVersion": "2018"
7+
"ecmaVersion": 2018
88
},
99
"plugins": ["prettier", "no-only-tests"],
1010
"rules": {
@@ -15,6 +15,7 @@
1515
"parser": "flow"
1616
}
1717
],
18+
"no-shadow": "error",
1819
"no-undef": "error",
1920
"no-unused-vars": ["error", { "vars": "all", "args": "after-used", "ignoreRestSiblings": false }],
2021
"no-only-tests/no-only-tests": [2]

.github/workflows/build.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
node: ["12.19.0", "14.15.0", "15.2.0"]
14+
node: ["12.22.1", "14.17.0", "15.14.0", "16.1.0"]
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v2
@@ -20,7 +20,7 @@ jobs:
2020
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})"
2121
id: extract-branch
2222
- name: Use Node.js
23-
uses: actions/setup-node@v1
23+
uses: actions/setup-node@v2
2424
with:
2525
node-version: ${{ matrix.node }}
2626
- name: Cache node modules
@@ -54,10 +54,12 @@ jobs:
5454
steps:
5555
- name: Checkout
5656
uses: actions/checkout@v2
57+
with:
58+
fetch-depth: 0
5759
- name: Download test results
5860
uses: actions/download-artifact@v2
5961
with:
60-
name: coverage-15.2.0
62+
name: coverage-16.1.0
6163
path: coverage
6264
- name: Coveralls
6365
uses: coverallsapp/github-action@master

.github/workflows/check-package-version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
uses: actions/checkout@v2
1212
- name: Get NPM version is new
1313
id: check
14-
uses: EndBug/version-check@v1.6.0
14+
uses: EndBug/version-check@v2.0.1
1515
with:
1616
diff-search: true
1717
file-name: ./package.json

.github/workflows/publish-to-github.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v2
10-
- uses: actions/setup-node@v1
10+
- uses: actions/setup-node@v2
1111
with:
12-
node-version: '12.x'
12+
node-version: '14.x'
1313
registry-url: 'https://npm.pkg.github.com'
1414
# Defaults to the user or organization that owns the workflow file
1515
scope: '@mocks-server'
16+
- run: npm ci
1617
- run: npm publish
1718
env:
1819
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/publish-to-npm.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v2
10-
- uses: actions/setup-node@v1
10+
- uses: actions/setup-node@v2
1111
with:
12-
node-version: '12.x'
12+
node-version: '14.x'
1313
registry-url: 'https://registry.npmjs.org/'
14+
- run: npm ci
1415
- run: npm publish
1516
env:
1617
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm run lint-staged

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1212
### Fixed
1313
### Removed
1414

15+
## [2.1.0] - 2021-05-24
16+
17+
### Added
18+
- feat: Add node v16.x to engines
19+
20+
### Changed
21+
- Update dependencies
22+
1523
## [2.0.0] - 2021-02-17
1624

1725
### Added

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Please read the [contributing guidelines](.github/CONTRIBUTING.md) and [code of
7070
[npm-downloads-url]: https://www.npmjs.com/package/@mocks-server/plugin-admin-api
7171
[npm-dependencies-image]: https://img.shields.io/david/mocks-server/plugin-admin-api.svg
7272
[npm-dependencies-url]: https://david-dm.org/mocks-server/plugin-admin-api
73-
[quality-gate-image]: https://sonarcloud.io/api/project_badges/measure?project=mocks-server-plugin-admin-api&metric=alert_status
74-
[quality-gate-url]: https://sonarcloud.io/dashboard?id=mocks-server-plugin-admin-api
73+
[quality-gate-image]: https://sonarcloud.io/api/project_badges/measure?project=mocks-server_plugin-admin-api&metric=alert_status
74+
[quality-gate-url]: https://sonarcloud.io/dashboard?id=mocks-server_plugin-admin-api
7575
[release-image]: https://img.shields.io/github/release-date/mocks-server/plugin-admin-api.svg
7676
[release-url]: https://github.com/mocks-server/plugin-admin-api/releases

0 commit comments

Comments
 (0)