Skip to content

Commit

Permalink
ci(js): change registry config
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeldking committed Jan 9, 2024
1 parent 6c1e072 commit 56c5cab
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/typescript-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: "https://registry.npmjs.org"
- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: 8
- name: Setup npmrc
- name: NPM login
working-directory: ./js
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
run: pnpm login
- name: setup pnpm config
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
- name: Install Dependencies
Expand All @@ -41,3 +42,4 @@ jobs:
cwd: "./js"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 56c5cab

Please sign in to comment.