Update workflow

master
Brad Cornes 2023-08-21 16:43:26 +01:00
parent 67eb02e659
commit fc7e38da1f
1 changed files with 7 additions and 1 deletions

View File

@ -11,6 +11,12 @@ jobs:
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
with: with:
node-version: 18 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 - name: Install dependencies
run: npm install && npm run bootstrap run: npm install && npm run bootstrap
- name: Bump version - name: Bump version
@ -33,6 +39,6 @@ jobs:
- name: Publish LSP - name: Publish LSP
run: > run: >
cd packages/tailwindcss-language-server && cd packages/tailwindcss-language-server &&
npm publish --tag insiders npm publish --tag insiders --access public
env: env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}