@@ -73,13 +73,13 @@ jobs:
7373 - name : Use Node.js
7474 uses : actions/setup-node@v4
7575 with :
76- node-version : 20
77- registry-url : ' https://registry.npmjs.org '
76+ cache : yarn
77+ node-version-file : .nvmrc
7878
79- - run : npm ci
79+ - run : yarn install
8080 - run : opam install dune cppo
81- - run : npm run compile
82- - run : npm run bundle
81+ - run : yarn compile
82+ - run : yarn bundle
8383
8484 # These 2 runs (or just the second?) are for when you have opam dependencies. We don't.
8585 # Don't add deps. But if you ever do, un-comment these and add an .opam file.
@@ -124,11 +124,11 @@ jobs:
124124 - name : Use Node.js
125125 uses : actions/setup-node@v4
126126 with :
127- node-version : 20
128- registry-url : ' https://registry.npmjs.org '
127+ cache : yarn
128+ node-version-file : .nvmrc
129129
130- - run : npm ci
131- - run : npm run compile
130+ - run : yarn install
131+ - run : yarn compile
132132
133133 - name : Download MacOS binaries
134134 uses : actions/download-artifact@v4
@@ -209,15 +209,15 @@ jobs:
209209
210210 - name : Package Extension
211211 if : github.ref != 'refs/heads/master'
212- run : npx vsce package -o rescript-vscode-${{ steps.vars.outputs.sha_short }}.vsix
212+ run : yarn dlx vsce package -o rescript-vscode-${{ steps.vars.outputs.sha_short }}.vsix
213213
214214 - name : Package Extension pre-release version
215215 if : github.ref == 'refs/heads/master'
216- run : npx vsce package -o rescript-vscode-latest-master.vsix ${{ steps.increment_pre_release.outputs.new_version }} --no-git-tag-version
216+ run : yarn dlx vsce package -o rescript-vscode-latest-master.vsix ${{ steps.increment_pre_release.outputs.new_version }} --no-git-tag-version
217217
218218 - name : Package Extension release version
219219 if : startsWith(github.ref, 'refs/tags/')
220- run : npx vsce package -o rescript-vscode-${{ steps.tag_name.outputs.tag }}.vsix ${{ steps.tag_name.outputs.tag }} --no-git-tag-version
220+ run : yarn dlx vsce package -o rescript-vscode-${{ steps.tag_name.outputs.tag }}.vsix ${{ steps.tag_name.outputs.tag }} --no-git-tag-version
221221
222222 - uses : actions/upload-artifact@v4
223223 if : github.ref != 'refs/heads/master'
@@ -273,37 +273,37 @@ jobs:
273273
274274 - name : Publish extension as pre-release
275275 if : github.ref == 'refs/heads/master' && !startsWith(github.event.head_commit.message, 'publish tools')
276- run : npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} --pre-release ${{ steps.increment_pre_release.outputs.new_version }} --no-git-tag-version
276+ run : yarn dlx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} --pre-release ${{ steps.increment_pre_release.outputs.new_version }} --no-git-tag-version
277277
278278 - name : Publish extension as release
279279 if : startsWith(github.ref, 'refs/tags/')
280- run : npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} ${{ steps.tag_name.outputs.tag }} --no-git-tag-version
280+ run : yarn dlx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} ${{ steps.tag_name.outputs.tag }} --no-git-tag-version
281281
282282 - name : Publish LSP as pre-release to NPM
283283 if : github.ref == 'refs/heads/master'
284284 working-directory : server
285285 run : |
286286 npm version preminor --preid next-$(git rev-parse --short HEAD)
287- npm publish --access public --tag next
287+ yarn publish --access public --tag next
288288 env :
289289 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
290290
291291 - name : Publish LSP to NPM
292292 if : startsWith(github.ref, 'refs/tags/')
293293 working-directory : server
294- run : npm publish --access public
294+ run : yarn publish --access public
295295 env :
296296 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
297297
298298 - name : Build @rescript/tools package
299299 working-directory : tools
300300 run : |
301- npm ci
302- npm run build
301+ yarn install
302+ yarn build
303303
304304 - name : Publish @rescript/tools package
305305 if : ${{ startsWith(github.event.head_commit.message, 'publish tools') && (github.ref == 'refs/heads/master') }}
306306 working-directory : tools
307- run : npm publish --access public
307+ run : yarn publish --access public
308308 env :
309309 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
0 commit comments