From 9b9a98f9771c5c44991ca829b3fb98871f130682 Mon Sep 17 00:00:00 2001 From: Jordan Pittman Date: Fri, 13 Oct 2023 13:40:41 -0400 Subject: [PATCH] Add release script --- .github/workflows/manual-release.yml | 33 ++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/manual-release.yml diff --git a/.github/workflows/manual-release.yml b/.github/workflows/manual-release.yml new file mode 100644 index 0000000..46673a0 --- /dev/null +++ b/.github/workflows/manual-release.yml @@ -0,0 +1,33 @@ +name: Publish Release +concurrency: publish +on: + workflow_dispatch: {} + +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: Run tests + run: > + cd packages/tailwindcss-language-server && + npm run build && + npm run test:prepare && + npm test + - name: Publish IntelliSense + env: + VSCODE_TOKEN: ${{ secrets.VSCODE_TOKEN }} + run: > + cd packages/vscode-tailwindcss && + npm run publish -- -p $VSCODE_TOKEN