-
Notifications
You must be signed in to change notification settings - Fork 25
34 lines (33 loc) · 1.11 KB
/
npm-packaging.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: NPM Packaging
on:
push:
branches: [main, dev, feature/*]
pull_request:
branches: [main, dev, feature/*]
jobs:
build:
name: Test public NPM packages
runs-on: ubuntu-latest
steps:
- name: Sync Code
uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Build all monorepo packages
run: |
npm run compile
- name: Pack public npm packages
run: |
npm pack -w server/aws-lsp-codewhisperer -w server/aws-lsp-partiql -w server/aws-lsp-json -w server/aws-lsp-yaml
- name: Create test package
run: |
cd tests
npm install ../aws-lsp-codewhisperer-*.tgz ../aws-lsp-partiql-*.tgz ../aws-lsp-json-*.tgz ../aws-lsp-yaml-*.tgz
- name: Test imports
run: |
cd tests
npm run test