Skip to content

Commit e497778

Browse files
authored
fix: pnpm auth token (lightdash#13306)
1 parent a9e207e commit e497778

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Diff for: .github/workflows/release-on-merge.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,16 @@ jobs:
2222
cache-dependency-path: 'pnpm-lock.yaml'
2323
- name: Install dependencies
2424
run: pnpm install --frozen-lockfile --prefer-offline --prod=false
25+
- name: Set publishing config
26+
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
27+
env:
28+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
2529
- name: Semantic Release
2630
id: semantic
2731
uses: cycjimmy/semantic-release-action@v4
2832
env:
2933
GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }}
3034
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
31-
# PNPM uses NODE_AUTH_TOKEN to authenticate with NPM
32-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3335
with:
3436
semantic_version: 19
3537
extra_plugins: |

Diff for: release.config.js

-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ module.exports = {
2121
},
2222
],
2323

24-
// This is a workaround to avoid the error "EUNSUPPORTEDPROTOCOL" when running the prepareCmd
25-
// https://github.com/pnpm/pnpm/issues/8064
26-
// https://github.com/pnpm/pnpm/issues/5904
2724
[
2825
'@semantic-release/exec',
2926
{

0 commit comments

Comments
 (0)