From 3ff1d3531243be26dcfed509002618c525b731ba Mon Sep 17 00:00:00 2001 From: Yash Kathe Date: Wed, 28 Dec 2022 14:04:36 +0530 Subject: [PATCH] fixed workflow error where javascript files were not being generated by tsc --- .github/workflows/publish.yml | 14 ++------------ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 5 insertions(+), 15 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 134fe6b..57c3658 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 @@ -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: diff --git a/package-lock.json b/package-lock.json index 8e72e99..7735118 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "f1-api-node", - "version": "0.2.1", + "version": "0.2.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "f1-api-node", - "version": "0.2.1", + "version": "0.2.2", "license": "GPL-3.0", "dependencies": { "axios": "^0.27.2", diff --git a/package.json b/package.json index 9e34d2f..95cdc23 100644 --- a/package.json +++ b/package.json @@ -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",