From 4624756b00b7b5f19d16c461a817852a7065eebd Mon Sep 17 00:00:00 2001 From: Simon Petrac Date: Wed, 11 Dec 2024 16:36:19 +0100 Subject: [PATCH] npm rework --- ...pm-publish-github-packages.yml => npm-publish.yml} | 11 ++++------- .npmrc | 1 - README.md | 2 +- package-lock.json | 6 +++--- package.json | 4 ++-- 5 files changed, 10 insertions(+), 14 deletions(-) rename .github/workflows/{npm-publish-github-packages.yml => npm-publish.yml} (77%) delete mode 100644 .npmrc diff --git a/.github/workflows/npm-publish-github-packages.yml b/.github/workflows/npm-publish.yml similarity index 77% rename from .github/workflows/npm-publish-github-packages.yml rename to .github/workflows/npm-publish.yml index ea2d329..0205dee 100644 --- a/.github/workflows/npm-publish-github-packages.yml +++ b/.github/workflows/npm-publish.yml @@ -18,19 +18,16 @@ jobs: - run: npm ci - run: npm test - publish-gpr: + publish-npm: needs: build runs-on: ubuntu-latest - permissions: - contents: read - packages: write steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: 20 - registry-url: https://npm.pkg.github.com/ + registry-url: https://registry.npmjs.org/ - run: npm ci - - run: npm publish + - run: npm publish --access public env: - NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} + NODE_AUTH_TOKEN: ${{secrets.npm_token}} diff --git a/.npmrc b/.npmrc deleted file mode 100644 index e36b41c..0000000 --- a/.npmrc +++ /dev/null @@ -1 +0,0 @@ -@nicosResearchAndDevelopment:registry=https://npm.pkg.github.com \ No newline at end of file diff --git a/README.md b/README.md index 9745fd5..506d6bd 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -# fua.core.async +# @fua/core.async diff --git a/package-lock.json b/package-lock.json index 52815ef..650fe93 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "@nicosResearchAndDevelopment/fua.core.async", + "name": "@fua/core.async", "version": "1.0.4", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "@nicosResearchAndDevelopment/fua.core.async", + "name": "@fua/core.async", "version": "1.0.4", "license": "MIT", "devDependencies": { @@ -1229,4 +1229,4 @@ } } } -} +} \ No newline at end of file diff --git a/package.json b/package.json index d2d397f..b8bb20c 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@nicosResearchAndDevelopment/fua.core.async", + "name": "@fua/core.async", "version": "1.0.4", "description": "", "main": "src/async.js", @@ -22,6 +22,6 @@ "type": "git", "url": "ssh://git@github.com:nicosResearchAndDevelopment/fua.core.async.git" }, - "author": "Simon Petrac", + "author": "Simon Petrac ", "license": "MIT" } \ No newline at end of file