Home

tailwind-ctp-intellisense @fc7e38da1ffedd8f279c7362232e0c2c29ef2cad - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tailwind-ctp-intellisense / .github / workflows / pre-release.yml
- raw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Publish pre-release
concurrency: publish
on:
  push:
    branches: [master]
jobs:
  publish:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-node@v3
        with:
          node-version: 18
          registry-url: 'https://registry.npmjs.org'
      - name: Cache node_modules
        uses: actions/cache@v3
        with:
          path: node_modules
          key: ${{ runner.os }}-${{ env.NODE_VERSION }}-node_modules-${{ hashFiles('**/package-lock.json') }}
      - name: Install dependencies
        run: npm install && npm run bootstrap
      - name: Bump version
        run: >
          node .github/workflows/bump-version.mjs &&
          cat packages/vscode-tailwindcss/package.json          
      # - name: Publish
      #   env:
      #     VSCODE_TOKEN: ${{ secrets.VSCODE_TOKEN }}
      #   run: npx lerna run publish --scope=vscode-tailwindcss -- --pre-release -p $VSCODE_TOKEN
      - name: Build LSP
        run: npx lerna run build --scope=@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 &&
          npm version 0.0.0-insiders.${{ env.SHA_SHORT }} --force --no-git-tag-version          
      - name: Publish LSP
        run: >
          cd packages/tailwindcss-language-server &&
          npm publish --tag insiders --access public          
        env:
          NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}