From e7c6d6e4f59587b5fedf8848a66af102ef9fdbcf Mon Sep 17 00:00:00 2001 From: Yurii Dukhovnyi Date: Wed, 18 Dec 2024 19:19:26 +0000 Subject: [PATCH] token experiment --- .github/workflows/npm-publish-github-packages.yml | 7 ++++--- .npmrc | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/npm-publish-github-packages.yml b/.github/workflows/npm-publish-github-packages.yml index a540873..0a8f42d 100644 --- a/.github/workflows/npm-publish-github-packages.yml +++ b/.github/workflows/npm-publish-github-packages.yml @@ -7,13 +7,14 @@ on: description: 'Version in semantic versioning format (i.e. 1.0.2)' required: true jobs: - publish: + package_publishing: runs-on: ubuntu-latest permissions: contents: read packages: write id-token: write env: + ACTIONS_STEP_DEBUG: true NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - uses: actions/checkout@v4 @@ -26,8 +27,8 @@ jobs: registry-url: 'https://npm.pkg.github.com' scope: '@salemove' - - name: Authenticate to GitHub Packages - run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.PAT_TOKEN }}" > ~/.npmrc + # - name: Authenticate to GitHub Packages + # run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc - name: Install dependencies run: npm install diff --git a/.npmrc b/.npmrc index d72ad01..c20275f 100644 --- a/.npmrc +++ b/.npmrc @@ -1,2 +1,2 @@ -//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN} -@salemove:registry=https://npm.pkg.github.com \ No newline at end of file +@salemove:registry=https://npm.pkg.github.com/ +//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN} \ No newline at end of file