Skip to content

Commit e573012

Browse files
authored
chore(workflow): fix publish command auth (#761)
Description Fix the authentication configuration for the new yarn version to be able to publish successfully.
1 parent be47b9f commit e573012

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

.github/workflows/publish.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,18 @@ jobs:
1717
with:
1818
node-version: '22'
1919

20-
- name: Setup .npmrc
20+
- name: Setup .yarnrc.yml
2121
run: |
22-
cat <<- 'EOF' > .npmrc
23-
@factset:registry=https://${{ secrets.NPM_PUBLISH_URL }}
24-
//${{ secrets.NPM_PUBLISH_URL }}:_authToken=${{ secrets.NPM_AUTH_TOKEN }}
25-
always-auth = true
22+
cat <<'EOF' >> .yarnrc.yml
23+
npmScopes:
24+
factset:
25+
npmRegistryServer: "https://${{ secrets.NPM_PUBLISH_URL }}"
26+
npmPublishRegistry: "https://${{ secrets.NPM_PUBLISH_URL }}"
27+
npmAlwaysAuth: true
28+
npmRegistries:
29+
"//${{ secrets.NPM_PUBLISH_URL }}":
30+
npmAuthToken: "${{ secrets.NPM_AUTH_TOKEN }}"
31+
npmAlwaysAuth: true
2632
EOF
2733
2834
- name: Install dependencies

0 commit comments

Comments
 (0)