From 29e16f53c83fc440af0370e0ddaa7fecc53f662e Mon Sep 17 00:00:00 2001 From: MillenniumEarl Date: Sun, 22 Nov 2020 11:24:27 +0100 Subject: [PATCH] Updated publish workflow --- .github/workflows/publish.yml | 2 +- .npmrc | 2 ++ package.json | 5 ++++- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .npmrc diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index db2335d..f812b2d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -33,4 +33,4 @@ jobs: - run: git push --tags && git push - run: yarn publish env: - NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} \ No newline at end of file + NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} \ No newline at end of file diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..a72de50 --- /dev/null +++ b/.npmrc @@ -0,0 +1,2 @@ +registry=https://npm.pkg.github.com/@millenniumearl +registry=https://registry.npmjs.org \ No newline at end of file diff --git a/package.json b/package.json index 8e01f17..1b4c424 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "main": "./app/index.js", - "name": "f95api", + "name": "@millenniumearl/f95api", "version": "1.6.3", "author": { "name": "Millennium Earl" @@ -10,6 +10,9 @@ "type": "git", "url": "https://github.com/MillenniumEarl/F95API.git" }, + "publishConfig": { + "registry": "https://npm.pkg.github.com/millenniumearl" + }, "license": "MIT", "keywords": [ "f95",