Skip to content

Commit

Permalink
token experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
dukhovnyi committed Dec 18, 2024
1 parent efe1f5b commit e7c6d6e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
@salemove:registry=https://npm.pkg.github.com
@salemove:registry=https://npm.pkg.github.com/
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}

0 comments on commit e7c6d6e

Please sign in to comment.