88 runs-on : ubuntu-latest
99 steps :
1010 - uses : actions/checkout@v3
11+ - uses : pnpm/action-setup@v3
12+ with :
13+ version : ^9.6.0
1114 - uses : actions/setup-node@v3
1215 with :
1316 node-version : 18
1417 registry-url : ' https://registry.npmjs.org'
15- - name : Cache node_modules
16- uses : actions/cache@v3
17- with :
18- path : node_modules
19- key : ${{ runner.os }}-${{ env.NODE_VERSION }}-node_modules-${{ hashFiles('**/package-lock.json') }}
18+ cache : ' pnpm'
2019 - name : Install dependencies
21- run : npm install
20+ run : pnpm install
2221 - name : Run tests
2322 run : >
2423 cd packages/tailwindcss-language-server &&
25- npm run build &&
26- npm run test:prepare &&
27- npm test
24+ pnpm run build &&
25+ pnpm run test:prepare &&
26+ pnpm test
2827 - name : Bump IntelliSense version
2928 run : >
3029 node .github/workflows/bump-version.mjs &&
@@ -34,19 +33,19 @@ jobs:
3433 VSCODE_TOKEN : ${{ secrets.VSCODE_TOKEN }}
3534 run : >
3635 cd packages/vscode-tailwindcss &&
37- npm run publish -- --pre-release -p $VSCODE_TOKEN
36+ pnpm run publish --pre-release -p $VSCODE_TOKEN
3837 - name : Build LSP
39- run : npm run build --workspace=packages/tailwindcss-language-server
38+ run : pnpm run build --workspace=packages/tailwindcss-language-server
4039 - name : Resolve LSP version
4140 run : |
4241 echo "SHA_SHORT=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
4342 - name : ' Version LSP based on commit: 0.0.0-insiders.${{ env.SHA_SHORT }}'
4443 run : >
4544 cd packages/tailwindcss-language-server &&
46- npm version 0.0.0-insiders.${{ env.SHA_SHORT }} --force --no-git-tag-version
45+ pnpm version 0.0.0-insiders.${{ env.SHA_SHORT }} --force --no-git-tag-version
4746 - name : Publish LSP
4847 run : >
4948 cd packages/tailwindcss-language-server &&
50- npm publish --tag insiders --access public
49+ pnpm publish --tag insiders --access public
5150 env :
5251 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
0 commit comments