Skip to content

Commit 3ff1d35

Browse files
committed
fixed workflow error where javascript files were not being generated by tsc
1 parent 81efcaa commit 3ff1d35

File tree

3 files changed

+5
-15
lines changed

3 files changed

+5
-15
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,8 @@ on:
55
types: [created]
66

77
jobs:
8-
build:
9-
runs-on: ubuntu-latest
10-
steps:
11-
- name: Get code access
12-
uses: actions/checkout@v3
13-
- name: Setup node environment
14-
uses: actions/setup-node@v3
15-
with:
16-
node-version: 16
17-
- name: Install dependencies
18-
run: npm ci
198

209
publish-npm:
21-
needs: build
2210
runs-on: ubuntu-latest
2311
steps:
2412
- name: Get code access
@@ -30,6 +18,8 @@ jobs:
3018
registry-url: https://registry.npmjs.org/
3119
- name: Install dependencies
3220
run: npm ci
21+
- name: Build Package
22+
run: npm run build
3323
- name: Publish package
3424
run: npm publish
3525
env:

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "f1-api-node",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"description": "A simple library written in typescript to fetch Formula-1 data",
55
"main": "dist/server.js",
66
"types": "dist/server.d.ts",

0 commit comments

Comments
 (0)