From 08293ff49756e3cf83dd00bc2122d7034d18a127 Mon Sep 17 00:00:00 2001 From: Josh Tynjala Date: Mon, 16 Oct 2023 11:17:52 -0700 Subject: [PATCH] actions: package npm --- .github/workflows/main.yml | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 30a31a04..38e71e45 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -58,7 +58,6 @@ jobs: if-no-files-found: error samples: - runs-on: ubuntu-latest steps: @@ -126,4 +125,36 @@ jobs: working-directory: samples/demo_npm/typescript run: | npm install - npm run build \ No newline at end of file + npm run build + + build-npm: + runs-on: ubuntu-latest + steps: + + - uses: actions/checkout@v3 + + - uses: actions/setup-node@v3 + with: + node-version: 16.x + + - name: Install Dependencies + run: | + npm install + + - name: Build Library + run: | + npm run build + + - name: Package Library for npm + run: | + npm pack + + - uses: actions/upload-artifact@v3 + with: + name: starling-framework-npm + path: starling-framework-*.tgz + if-no-files-found: error + + - name: Build docs + run: | + npm run build-docs \ No newline at end of file