Skip to content

Commit 554fde7

Browse files
committed
fix: fix build command for library
1 parent 3391c9c commit 554fde7

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ jobs:
1414
- name: Setup Node.js
1515
uses: actions/setup-node@v3
1616
with:
17-
node-version: '18.x'
17+
node-version: '22.x'
1818

1919
- name: Install dependencies
2020
run: npm ci
2121

2222
- name: Build
23-
run: npm run build ngx-annotate-text '--configuration production'
23+
run: npm run build:lib:prod
2424

2525
- name: Lint
2626
run: npm run lint ngx-annotate-text
@@ -29,4 +29,4 @@ jobs:
2929
run: npm run test-headless ngx-annotate-text
3030

3131
- name: Build Angular demo app
32-
run: npm run build --omit=dev
32+
run: npm run build

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ jobs:
1212
- name: Setup Node.js
1313
uses: actions/setup-node@v3
1414
with:
15-
node-version: '20.x'
15+
node-version: '22.x'
1616

1717
- name: Install dependencies
1818
run: npm ci
1919

2020
- name: Build
21-
run: npm run build ngx-annotate-text '--configuration production'
21+
run: npm run build:lib:prod
2222

2323
- name: Lint
2424
run: npm run lint ngx-annotate-text

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v20.11.1
1+
v22.11.0

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"ng": "ng",
66
"start": "ng serve",
77
"build": "ng build",
8+
"build:lib:prod": "ng build ngx-annotate-text --configuration production",
89
"watch": "ng build --watch --configuration development",
910
"test": "ng test",
1011
"lint": "ng lint",

0 commit comments

Comments
 (0)