Skip to content

Commit 9fd2ffb

Browse files
Add workflow adaptation to ensure build script finishes correctly
Signed-off-by: Xavier Geerinck <[email protected]>
1 parent 582a042 commit 9fd2ffb

File tree

3 files changed

+8
-13
lines changed

3 files changed

+8
-13
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,7 @@ jobs:
2828
node-version: ${{ env.NODE_VER }}
2929
registry-url: 'https://registry.npmjs.org'
3030

31-
- run: npm ci
32-
env:
33-
CI: true
34-
35-
- run: npm run lint
36-
env:
37-
CI: true
38-
39-
- run: npm run test:unit:main
40-
- run: npm run test:unit:actors
31+
- run: ./scripts/build.sh
4132

4233
- name: Is Release?
4334
if: startswith(github.ref, 'refs/tags/v')

scripts/build.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ echo "Executing in $(pwd)"
1010
echo "Description: Build the package in build/"
1111
echo "====================================================="
1212

13+
echo "Installing Dependencies"
14+
echo "Note: if EEXIST: file already exists on tsc, run `npm uninstall -g tsc`"
15+
npm install -g typescript
16+
npm install
17+
1318
# Prepare build
1419
echo "Preparing Build"
1520
rm -rf build/
@@ -22,8 +27,7 @@ mkdir build/
2227

2328
# Build Package
2429
echo "Building Library"
25-
npm install > /dev/null
26-
npm run lint > /dev/null
30+
npm run lint
2731
tsc --outDir ./build/
2832

2933
# Prepare Publish

src/types/metadata/GetMetadataResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { KeyValuePairType } from "../KeyValuePair.type";
1+
import { KeyValueType } from "../KeyValue.type";
22

33
export type GetMetadataResponse = {
44
id: string;

0 commit comments

Comments
 (0)