3636 runs-on : ubuntu-latest
3737 strategy :
3838 matrix :
39- node-version : [18, 20]
39+ node-version : [20]
4040 steps :
4141 - uses : actions/checkout@v4
4242
6868 name : cli-coverage
6969 fail_ci_if_error : false
7070 token : ${{ secrets.CODECOV_TOKEN }}
71- if : matrix.node-version == 18 && always()
71+ if : matrix.node-version == 20 && always()
7272 continue-on-error : true
7373
7474 build-cli :
@@ -221,7 +221,7 @@ jobs:
221221 needs : [build-cli, integration-test]
222222 if : |
223223 github.event_name == 'push' &&
224- ( startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main ') &&
224+ startsWith(github.ref, 'refs/tags/v') &&
225225 needs.build-cli.result == 'success'
226226 environment :
227227 name : npm-publish
@@ -255,8 +255,7 @@ jobs:
255255 echo "tag=v$VERSION" >> $GITHUB_OUTPUT
256256 echo "Package version: $VERSION"
257257
258- - name : Verify tag matches package version (if tag push)
259- if : startsWith(github.ref, 'refs/tags/v')
258+ - name : Verify tag matches package version
260259 working-directory : ./cli
261260 run : |
262261 PACKAGE_VERSION=$(node -p "require('./package.json').version")
@@ -267,15 +266,7 @@ jobs:
267266 fi
268267 echo "✓ Tag version matches package version: $PACKAGE_VERSION"
269268
270- - name : Publish to NPM (dry-run)
271- if : github.ref == 'refs/heads/main'
272- working-directory : ./cli
273- run : npm publish --dry-run
274- env :
275- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
276-
277269 - name : Verify NPM authentication and permissions
278- if : startsWith(github.ref, 'refs/tags/v')
279270 id : verify_npm
280271 working-directory : ./cli
281272 run : |
@@ -322,7 +313,6 @@ jobs:
322313 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
323314
324315 - name : Publish to NPM
325- if : startsWith(github.ref, 'refs/tags/v')
326316 working-directory : ./cli
327317 run : npm publish
328318 env :
0 commit comments