From 1d19767c98ac31556adda3368984abf4f8a2c01c Mon Sep 17 00:00:00 2001 From: Sai Saran Vaidyanathan Date: Mon, 19 Dec 2022 09:16:54 -0800 Subject: [PATCH] v1.0.0 --- .github/workflows/npm-publish.yml | 33 +++++++++++++++++++++++++++++++ package-lock.json | 14 ++++++------- package.json | 3 +-- 3 files changed, 41 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/npm-publish.yml diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml new file mode 100644 index 0000000..cbdd16e --- /dev/null +++ b/.github/workflows/npm-publish.yml @@ -0,0 +1,33 @@ +# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created +# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages + +name: Node.js Package + +on: + release: + types: [created] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + - run: npm ci + - run: npm test + + publish-npm: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + registry-url: https://registry.npmjs.org/ + - run: npm ci + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} diff --git a/package-lock.json b/package-lock.json index 37a4f8d..a4bab87 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,13 +1,13 @@ { "name": "openapi2apigee", - "version": "0.9.0", + "version": "1.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "openapi2apigee", - "version": "0.9.0", - "license": "MIT", + "version": "1.0.0", + "license": "Apache-2.0", "dependencies": { "apigeetool": "0.15.0", "async": "^2.1.2", @@ -3240,12 +3240,12 @@ "dev": true }, "node_modules/internal-slot": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.3.tgz", - "integrity": "sha512-O0DB1JC/sPyZl7cIo78n5dR7eUSwwpYPiXRhTzNxZVAMUuB8vlnRFyLxdrVToks6XPLVnFfbzaVd5WLjhgg+vA==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.4.tgz", + "integrity": "sha512-tA8URYccNzMo94s5MQZgH8NB/XTa6HsOo0MLfXTKKEnHVVdegzaQoFZ7Jp44bdvLvY2waT5dc+j5ICEswhi7UQ==", "dev": true, "dependencies": { - "get-intrinsic": "^1.1.0", + "get-intrinsic": "^1.1.3", "has": "^1.0.3", "side-channel": "^1.0.4" }, diff --git a/package.json b/package.json index 43aad44..a909994 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "openapi2apigee", - "version": "0.9.0", + "version": "1.0.0", "description": "A tool that converts openapi yaml file to Apigee API Proxy Bundle", "main": "index.js", "scripts": { @@ -23,7 +23,6 @@ "Proxy", "Proxies" ], - "author": "Google LLC", "license": "Apache-2.0", "bugs": { "url": "https://github.com/apigee/openapi2apigee/issues"