Install modules using npm rather than building dist/index.js

This commit is contained in:
Sam McCall 2020-02-17 12:36:29 +01:00
parent 9bb04435ce
commit 09c4fcbc32
4 changed files with 2 additions and 8 deletions

View File

@ -12,4 +12,4 @@ outputs:
description: 'The SHA1 of the picked commit' description: 'The SHA1 of the picked commit'
runs: runs:
using: 'node12' using: 'node12'
main: 'dist/index.js' main: 'index.js'

View File

@ -1,5 +0,0 @@
#!/bin/bash -ex
# Rather than checking in node_modules, check in a standalone dist/index.js.
# Requires ncc: npm i -g @zeit/ncc
npm install
ncc build -m index.js

File diff suppressed because one or more lines are too long

View File

@ -137,7 +137,7 @@ jobs:
env: { GITHUB_TOKEN: "${{ secrets.RELEASE_TOKEN }}" } env: { GITHUB_TOKEN: "${{ secrets.RELEASE_TOKEN }}" }
with: with:
upload_url: ${{ github.event.release.upload_url }} upload_url: ${{ github.event.release.upload_url }}
asset_name: clangd-${{ matrix.config.name }}.zip asset_name: clangd-${{ matrix.config.name }}-${{ github.event.release.tag_name }}.zip
asset_path: clangd.zip asset_path: clangd.zip
asset_content_type: application/zip asset_content_type: application/zip
# Create the release, and upload the artifacts to it. # Create the release, and upload the artifacts to it.