Skip to content

fix: more robust start tag detection #88

fix: more robust start tag detection

fix: more robust start tag detection #88

name: Tagged Production Deploys For svelte-language-server
on:
push:
tags:
- "language-server-*"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
cache: pnpm
# Ensure everything is compiling
- run: "pnpm install"
- run: "pnpm build"
# Lets us use one-liner JSON manipulations the package.json files
- run: "npm install -g json"
# Setup the environment
- run: 'json -I -f packages/language-server/package.json -e "this.version=\`${{ github.ref }}\`.split(\`-\`).pop()"'
# Ship it
- run: |
cd packages/language-server
pnpm install
pnpm publish --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}