Skip to content

Commit 9b9a98f

Browse files
committed
Add release script
1 parent 4dd6a7d commit 9b9a98f

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/manual-release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Publish Release
2+
concurrency: publish
3+
on:
4+
workflow_dispatch: {}
5+
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
- uses: actions/setup-node@v3
12+
with:
13+
node-version: 18
14+
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') }}
20+
- name: Install dependencies
21+
run: npm install && npm run bootstrap
22+
- name: Run tests
23+
run: >
24+
cd packages/tailwindcss-language-server &&
25+
npm run build &&
26+
npm run test:prepare &&
27+
npm test
28+
- name: Publish IntelliSense
29+
env:
30+
VSCODE_TOKEN: ${{ secrets.VSCODE_TOKEN }}
31+
run: >
32+
cd packages/vscode-tailwindcss &&
33+
npm run publish -- -p $VSCODE_TOKEN

0 commit comments

Comments
 (0)