From a1bf873e87f15e1f22e4deb5c983a9ade6510a02 Mon Sep 17 00:00:00 2001 From: iamrosada Date: Wed, 1 Nov 2023 12:50:57 +0300 Subject: [PATCH] feat: added token --- .../workflows/npm-publish-github-packages.yml | 36 ------------------- .npmrc | 2 +- 2 files changed, 1 insertion(+), 37 deletions(-) delete mode 100644 .github/workflows/npm-publish-github-packages.yml diff --git a/.github/workflows/npm-publish-github-packages.yml b/.github/workflows/npm-publish-github-packages.yml deleted file mode 100644 index 1f6c0a0..0000000 --- a/.github/workflows/npm-publish-github-packages.yml +++ /dev/null @@ -1,36 +0,0 @@ -# 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://docs.github.com/en/actions/publishing-packages/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 - - publish-gpr: - 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/ - - run: npm ci - - run: npm publish - env: - NODE_AUTH_TOKEN: ${{secrets.PAT}} - diff --git a/.npmrc b/.npmrc index 9a8f7cb..132708d 100644 --- a/.npmrc +++ b/.npmrc @@ -1,2 +1,2 @@ @iamrosada:registry=https://npm.pkg.github.com/ -//npm.pkg.github.com/:_authToken=${PAT} \ No newline at end of file +//npm.pkg.github.com/:_authToken=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