Skip to content

Commit

Permalink
Add emmet-language-server bundling (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
Guldoman authored Mar 6, 2024
1 parent b3d034d commit d30a0ef
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/emmet-language-server.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Package emmet-language-server

on:
workflow_dispatch:
inputs:
emmet-language-server_version:
type: string
required: true

jobs:
package_all:
name: Package Emmet Language Server
runs-on: ubuntu-latest
permissions: write-all
env:
VERSION: ${{ inputs.emmet-language-server_version }}
steps:
- uses: actions/checkout@v3
- name: Update Packages
run: sudo apt-get update -y
- name: Install Dependencies
run: sudo apt-get install -y npm nodejs
- name: Get emmet-language-server
run: |
curl -L -o "v${VERSION}.tar.gz" "https://github.com/olrtg/emmet-language-server/archive/refs/tags/v${VERSION}.tar.gz"
- name: Build emmet-language-server
run: |
tar -xzvf "v${VERSION}.tar.gz"
cd "emmet-language-server-${VERSION}"
npm i @vercel/ncc
node node_modules/@vercel/ncc/dist/ncc/cli.js build index.ts --license LICENSES
- name: Package
run: |
mkdir bundle
cp -r emmet-language-server-${VERSION}/{LICENSE,dist} bundle
mv bundle emmet-language-server
tar -zcvf emmet-language-server-${VERSION}.tar.gz emmet-language-server
- name: Create Release
env: { GITHUB_TOKEN: "${{ github.token }}" }
run: |
gh release delete -y "emmet-language-server-$VERSION" || true
gh release create -t "emmet-language-server-$VERSION" "emmet-language-server-$VERSION" "emmet-language-server-${VERSION}.tar.gz"

0 comments on commit d30a0ef

Please sign in to comment.