Skip to content

Commit

Permalink
Fix pre-release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
thecrypticace committed Aug 7, 2024
1 parent f83d282 commit 8f26af4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,27 @@ jobs:
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build everything
run: pnpm -r run build
- name: Run tests
run: >
cd packages/tailwindcss-language-server &&
pnpm run build &&
pnpm run test:prepare &&
pnpm test
run: pnpm --filter ./packages/tailwindcss-language-server run test
- name: Bump IntelliSense version
run: >
node .github/workflows/bump-version.mjs &&
cat packages/vscode-tailwindcss/package.json
- name: Publish IntelliSense
env:
VSCODE_TOKEN: ${{ secrets.VSCODE_TOKEN }}
run: >
cd packages/vscode-tailwindcss &&
pnpm run publish --pre-release -p $VSCODE_TOKEN
- name: Build LSP
run: pnpm run build --workspace=packages/tailwindcss-language-server
- name: Resolve LSP version
run: |
echo "SHA_SHORT=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- name: 'Version LSP based on commit: 0.0.0-insiders.${{ env.SHA_SHORT }}'
run: >
cd packages/tailwindcss-language-server &&
pnpm version 0.0.0-insiders.${{ env.SHA_SHORT }} --force --no-git-tag-version
- name: Publish IntelliSense
env:
VSCODE_TOKEN: ${{ secrets.VSCODE_TOKEN }}
run: >
cd packages/vscode-tailwindcss &&
pnpm run publish --pre-release -p $VSCODE_TOKEN
- name: Publish LSP
run: >
cd packages/tailwindcss-language-server &&
Expand Down
2 changes: 1 addition & 1 deletion packages/tailwindcss-language-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"create-notices-file": "node scripts/createNoticesFile.mjs",
"prepublishOnly": "pnpm run build",
"test": "vitest",
"test:prepare": "node tests/prepare.js"
"pretest": "node tests/prepare.js"
},
"bin": {
"tailwindcss-language-server": "./bin/tailwindcss-language-server"
Expand Down

0 comments on commit 8f26af4

Please sign in to comment.