From 8fe8b0756a2fc7694d804c3bc319d109e46bf8e1 Mon Sep 17 00:00:00 2001 From: aabidsofi19 Date: Wed, 20 Dec 2023 22:21:42 +0530 Subject: [PATCH 1/3] Add publishConfig Signed-off-by: aabidsofi19 --- .github/workflows/npm-publish.yml | 1 - package.json | 43 +++++++++++++++++-------------- 2 files changed, 23 insertions(+), 21 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 539e01e..ace637e 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -34,7 +34,6 @@ jobs: node-version: 16 registry-url: "https://registry.npmjs.org" scope: "@layer5" - access: "public" - run: npm publish --verbose env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 9f5b327..543fe43 100644 --- a/package.json +++ b/package.json @@ -1,22 +1,25 @@ { - "name": "@layer5/rtk-query-codegen", - "version": "0.0.1", - "private": false, - "description": "Codegen to create rtk-query api from openapi schema", - "main": "index.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "bin": { - "rtk-query-codegen": "./src/app.js" - }, - "author": "", - "dependencies": { - "@reduxjs/toolkit": "^1.9.6", - "@rtk-query/codegen-openapi": "^1.0.0", - "typescript": "^4.4.3", - "commander": "^11.0.0", - "prettier-plugin-organize-imports": "^3.2.3", - "@redocly/cli": "*" - } + "name": "@layer5/rtk-query-codegen", + "version": "0.0.1", + "private": false, + "publishConfig": { + "access": "public" + }, + "description": "Codegen to create rtk-query api from openapi schema", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "bin": { + "rtk-query-codegen": "./src/app.js" + }, + "author": "", + "dependencies": { + "@reduxjs/toolkit": "^1.9.6", + "@rtk-query/codegen-openapi": "^1.0.0", + "typescript": "^4.4.3", + "commander": "^11.0.0", + "prettier-plugin-organize-imports": "^3.2.3", + "@redocly/cli": "*" + } } From 2a5eba77100c1de25aa256e3f2d39274678a453d Mon Sep 17 00:00:00 2001 From: aabidsofi19 Date: Wed, 20 Dec 2023 22:23:33 +0530 Subject: [PATCH 2/3] Add publishConfig Signed-off-by: aabidsofi19 --- .github/workflows/npm-publish.yml | 1 - package.json | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index ace637e..658264c 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -32,7 +32,6 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 16 - registry-url: "https://registry.npmjs.org" scope: "@layer5" - run: npm publish --verbose env: diff --git a/package.json b/package.json index 543fe43..0d7b685 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,9 @@ "version": "0.0.1", "private": false, "publishConfig": { - "access": "public" + "access": "public", + "registry": "https://registry.npmjs.org", + "scope": "@layer5" }, "description": "Codegen to create rtk-query api from openapi schema", "main": "index.js", From 73426db195404885a556a4f25897110706570cbd Mon Sep 17 00:00:00 2001 From: aabidsofi19 Date: Wed, 20 Dec 2023 22:28:37 +0530 Subject: [PATCH 3/3] Add publishConfig Signed-off-by: aabidsofi19 --- .github/workflows/npm-publish.yml | 1 + package.json | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 658264c..ace637e 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -32,6 +32,7 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 16 + registry-url: "https://registry.npmjs.org" scope: "@layer5" - run: npm publish --verbose env: diff --git a/package.json b/package.json index 0d7b685..543fe43 100644 --- a/package.json +++ b/package.json @@ -3,9 +3,7 @@ "version": "0.0.1", "private": false, "publishConfig": { - "access": "public", - "registry": "https://registry.npmjs.org", - "scope": "@layer5" + "access": "public" }, "description": "Codegen to create rtk-query api from openapi schema", "main": "index.js",