1
0
Эх сурвалжийг харах

chore: Clean up publish workflow

Michael Bromley 1 сар өмнө
parent
commit
0a42f15aaf

+ 3 - 5
.github/workflows/publish_to_npm.yml

@@ -72,7 +72,7 @@ jobs:
 
 
       - name: Setup Node.js
       - name: Setup Node.js
         if: matrix.type == 'release' || steps.commit_check.outputs.should_publish == 'true'
         if: matrix.type == 'release' || steps.commit_check.outputs.should_publish == 'true'
-        uses: actions/setup-node@v4
+        uses: actions/setup-node@v6
         with:
         with:
           node-version: '24.x'
           node-version: '24.x'
           registry-url: 'https://registry.npmjs.org'
           registry-url: 'https://registry.npmjs.org'
@@ -125,11 +125,9 @@ jobs:
           git add .
           git add .
           git commit -m "chore: Bump version for ${{ matrix.type }} pre-release"
           git commit -m "chore: Bump version for ${{ matrix.type }} pre-release"
 
 
-      - name: Debug - Log all environment variables
-        if: matrix.type == 'release' || steps.commit_check.outputs.should_publish == 'true'
-        run: env | sort
-
       # Publish to npm with appropriate dist-tag
       # Publish to npm with appropriate dist-tag
+      # Note: we do not use `lerna publish` because at the time of writing, it fails to publish
+      # using the Trusted Publishing workflow for some reason.
       - name: Publish to NPM (release)
       - name: Publish to NPM (release)
         if: matrix.type == 'release'
         if: matrix.type == 'release'
         run: npx lerna exec --no-private -- npm publish --access public
         run: npx lerna exec --no-private -- npm publish --access public