From 6f9c109638aad433be491afafa3b7bb5489bb0d2 Mon Sep 17 00:00:00 2001 From: Chris Wang Date: Sun, 8 Aug 2021 21:00:58 +0800 Subject: [PATCH] upgraded the CI/CD support from 15.x to 16.x --- .github/workflows/ci.yml | 2 +- .github/workflows/release.yml | 4 ++-- .gitignore | 5 ++++- package-lock.json | 7 ++++--- package.json | 6 +++++- 5 files changed, 16 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9c2c3b4..feef92b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,6 +12,6 @@ jobs: - name: Use Node.js uses: actions/setup-node@v1 with: - node-version: '15.13.0' + node-version: '16' - run: npm ci - run: npm test \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3634bd0..67aaf59 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node: [ '12', '13', '14', '15'] + node: [ '12', '13', '14', '15', '16'] name: Buid on Node ${{ matrix.node }} steps: - uses: actions/checkout@v2 @@ -25,7 +25,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: '15.x' + node-version: '16.x' registry-url: 'https://registry.npmjs.org' - run: npm publish env: diff --git a/.gitignore b/.gitignore index dc8903b..d140830 100644 --- a/.gitignore +++ b/.gitignore @@ -116,4 +116,7 @@ dist .pnp.* # certificate file -.pem \ No newline at end of file +.pem + +# MacOS file +.DS_Store \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index cd18fe2..71be275 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,12 @@ { - "name": "petstore-api", - "version": "1.0.0", + "name": "@mw866/petstore-api", + "version": "1.0.5", "lockfileVersion": 2, "requires": true, "packages": { "": { - "version": "1.0.0", + "name": "@mw866/petstore-api", + "version": "1.0.5", "license": "Apache-2.0", "dependencies": { "connect": "^3.2.0", diff --git a/package.json b/package.json index a837320..4965790 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mw866/petstore-api", - "version": "1.0.5", + "version": "1.0.6", "description": "This is a Petstore API service built on Node.", "author": "Chris Wang (https://chriswang.tech/)", "main": "index.js", @@ -25,5 +25,9 @@ "chai": "^4.3.4", "chai-http": "^4.3.0", "mocha": "^8.3.2" + }, + "engines": { + "node": "16.x", + "npm": "7.x" } }