Skip to content

Commit 7c4e0cc

Browse files
authored
Fix/npm publish workflow (#516)
1 parent 1e748cc commit 7c4e0cc

File tree

2 files changed

+6
-57
lines changed

2 files changed

+6
-57
lines changed

.github/workflows/publish_to_npm.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

.github/workflows/release_web_console.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ on:
66
- main
77
workflow_dispatch:
88

9+
permissions:
10+
contents: read
11+
id-token: write
12+
913
jobs:
1014
publish:
1115
name: Publish to NPM
1216
runs-on: ubuntu-latest
13-
permissions:
14-
contents: read
15-
id-token: write
1617
if: |
1718
github.event_name == 'workflow_dispatch' ||
1819
startsWith(github.event.head_commit.message, 'release: ')
@@ -21,22 +22,15 @@ jobs:
2122
changelog: ${{ steps.extract-changelog.outputs.changelog }}
2223

2324
steps:
24-
- name: Debug workflow info
25-
run: |
26-
echo "=== Workflow Debug Info ==="
27-
echo "Branch: ${{ github.ref_name }}"
28-
echo "SHA: ${{ github.sha }}"
29-
echo "Event: ${{ github.event_name }}"
30-
echo "Using native npm publish (not JS-DevTools)"
31-
3225
- uses: actions/checkout@v4
3326
with:
3427
submodules: "recursive"
3528

3629
- uses: actions/setup-node@v4
3730
with:
38-
node-version: "20"
31+
node-version: "24"
3932
cache: "yarn"
33+
registry-url: "https://registry.npmjs.org"
4034

4135
- name: Install dependencies
4236
run: yarn install --immutable

0 commit comments

Comments
 (0)