Skip to content

Commit c2c5f5e

Browse files
authored
Merge pull request #16 from Countly/ar2rsawseen/main
docker fix
2 parents c72338f + bea34e6 commit c2c5f5e

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.github/workflows/npm-publish.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,46 @@ permissions:
88
id-token: write # Required for OIDC
99
contents: read
1010
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v5
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v6
20+
with:
21+
node-version: '20.x'
22+
cache: 'npm'
23+
24+
- name: Install dependencies
25+
run: npm ci
26+
27+
- name: Run tests
28+
run: npm run test:ci
29+
1130
publish:
1231
runs-on: ubuntu-latest
32+
1333
steps:
1434
- name: Checkout code
1535
uses: actions/checkout@v5
36+
1637
- name: Set up Node.js
1738
uses: actions/setup-node@v6
1839
with:
1940
node-version: '20'
2041
registry-url: 'https://registry.npmjs.org/'
42+
2143
- name: Update npm
2244
run: npm install -g npm@latest
45+
2346
- name: Install dependencies
2447
run: npm ci
48+
2549
- name: Build
2650
run: npm run build
51+
2752
- name: Publish to npm
2853
run: npm publish --access public

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ WORKDIR /app
99
# Copy package files
1010
COPY package*.json ./
1111
COPY tsconfig.json ./
12+
COPY tsconfig.build.json ./
1213

1314
# Install dependencies
1415
RUN npm ci

0 commit comments

Comments
 (0)