File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed
Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -8,21 +8,46 @@ permissions:
88 id-token : write # Required for OIDC
99 contents : read
1010jobs :
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
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ WORKDIR /app
99# Copy package files
1010COPY package*.json ./
1111COPY tsconfig.json ./
12+ COPY tsconfig.build.json ./
1213
1314# Install dependencies
1415RUN npm ci
You can’t perform that action at this time.
0 commit comments