Skip to content

Commit

Permalink
fixed workflow error where javascript files were not being generated …
Browse files Browse the repository at this point in the history
…by tsc
  • Loading branch information
yashkathe committed Dec 28, 2022
1 parent 81efcaa commit 3ff1d35
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,8 @@ on:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Get code access
uses: actions/checkout@v3
- name: Setup node environment
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: npm ci

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- name: Get code access
Expand All @@ -30,6 +18,8 @@ jobs:
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: npm ci
- name: Build Package
run: npm run build
- name: Publish package
run: npm publish
env:
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "f1-api-node",
"version": "0.2.1",
"version": "0.2.2",
"description": "A simple library written in typescript to fetch Formula-1 data",
"main": "dist/server.js",
"types": "dist/server.d.ts",
Expand Down

0 comments on commit 3ff1d35

Please sign in to comment.