Skip to content

Commit

Permalink
try auth token in npmrc for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jraymakers committed Aug 10, 2024
1 parent c970232 commit 77eda67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/NodeJS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,9 @@ jobs:
working-directory: alt/api
run: pnpm test

- name: Publish - Config Auth Token
if: ${{ inputs.publish_win32_x64 }}
run: pnpm config set '//npm.pkg.github.com/:_authToken' "${NPM_AUTH_TOKEN}"
env:
NPM_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish - Bindings - Win32 x64
if: ${{ inputs.publish_win32_x64 }}
working-directory: alt/bindings/pkgs/@duckdb/node-bindings-win32-x64
run: pnpm publish ${{ inputs.publish_dry_run && '--dry-run' || '' }} --publish-branch ${{ github.ref_name }}
env:
NPM_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions alt/bindings/pkgs/@duckdb/node-bindings-win32-x64/.npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
@duckdb:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${NPM_AUTH_TOKEN}

0 comments on commit 77eda67

Please sign in to comment.