From 096cb9c1699d3716733c35fc953b8faa143cfaad Mon Sep 17 00:00:00 2001 From: Hauke Thorenz Date: Mon, 13 Jun 2022 08:53:52 +0200 Subject: [PATCH] publish to npm --- .../{npm-publish-github-packages.yml => npm-publish.yml} | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) rename .github/workflows/{npm-publish-github-packages.yml => npm-publish.yml} (81%) diff --git a/.github/workflows/npm-publish-github-packages.yml b/.github/workflows/npm-publish.yml similarity index 81% rename from .github/workflows/npm-publish-github-packages.yml rename to .github/workflows/npm-publish.yml index e46ab2a..ea2433e 100644 --- a/.github/workflows/npm-publish-github-packages.yml +++ b/.github/workflows/npm-publish.yml @@ -18,20 +18,17 @@ jobs: - run: npm ci - run: npm run prepublishOnly - publish-gpr: + publish-npm: needs: build runs-on: ubuntu-latest - permissions: - contents: read - packages: write steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: node-version: 16 - registry-url: https://npm.pkg.github.com/ + registry-url: https://registry.npmjs.org/ - run: npm ci - run: npm run prepublishOnly - run: npm publish env: - NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} + NODE_AUTH_TOKEN: ${{secrets.npm_token}}