8
8
runs-on : ubuntu-latest
9
9
steps :
10
10
- uses : actions/checkout@v3
11
+ - uses : pnpm/action-setup@v3
12
+ with :
13
+ version : ^9.6.0
11
14
- uses : actions/setup-node@v3
12
15
with :
13
16
node-version : 18
14
17
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'
20
19
- name : Install dependencies
21
- run : npm install
20
+ run : pnpm install
22
21
- name : Run tests
23
22
run : >
24
23
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
28
27
- name : Bump IntelliSense version
29
28
run : >
30
29
node .github/workflows/bump-version.mjs &&
@@ -34,19 +33,19 @@ jobs:
34
33
VSCODE_TOKEN : ${{ secrets.VSCODE_TOKEN }}
35
34
run : >
36
35
cd packages/vscode-tailwindcss &&
37
- npm run publish -- --pre-release -p $VSCODE_TOKEN
36
+ pnpm run publish -- --pre-release -p $VSCODE_TOKEN
38
37
- name : Build LSP
39
- run : npm run build --workspace=packages/tailwindcss-language-server
38
+ run : pnpm run build --workspace=packages/tailwindcss-language-server
40
39
- name : Resolve LSP version
41
40
run : |
42
41
echo "SHA_SHORT=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
43
42
- name : ' Version LSP based on commit: 0.0.0-insiders.${{ env.SHA_SHORT }}'
44
43
run : >
45
44
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
47
46
- name : Publish LSP
48
47
run : >
49
48
cd packages/tailwindcss-language-server &&
50
- npm publish --tag insiders --access public
49
+ pnpm publish --tag insiders --access public
51
50
env :
52
51
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
0 commit comments