Skip to content

Commit

Permalink
actions: package npm
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtynjala committed Oct 16, 2023
1 parent f9aea26 commit 08293ff
Showing 1 changed file with 33 additions and 2 deletions.
35 changes: 33 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ jobs:
if-no-files-found: error

samples:

runs-on: ubuntu-latest
steps:

Expand Down Expand Up @@ -126,4 +125,36 @@ jobs:
working-directory: samples/demo_npm/typescript
run: |
npm install
npm run build
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

0 comments on commit 08293ff

Please sign in to comment.