Skip to content

Commit f5019b3

Browse files
authored
fix(ci): align v1 npm setup with dev (#64356)
1 parent 64c981b commit f5019b3

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎.github/workflows/publish.yml‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,6 @@ jobs:
568568
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
569569
with:
570570
node-version: "24"
571-
registry-url: "https://registry.npmjs.org"
572571

573572
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
574573
with:
@@ -643,8 +642,12 @@ jobs:
643642
fi
644643
gh release upload "v${{ needs.version.outputs.version }}" "${files[@]}" --clobber --repo "${{ needs.version.outputs.repo }}"
645644
646-
- run: ./script/publish.ts
645+
- run: |
646+
printf 'registry=https://registry.npmjs.org/\n' > "$NPM_CONFIG_USERCONFIG"
647+
./script/publish.ts
647648
env:
649+
NPM_CONFIG_USERCONFIG: ${{ runner.temp }}/v1-publish.npmrc
650+
NPM_CONFIG_LOGLEVEL: verbose
648651
OPENCODE_VERSION: ${{ needs.version.outputs.version }}
649652
OPENCODE_RELEASE: ${{ needs.version.outputs.release }}
650653
GITHUB_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)