From 642e63e905eb987f38469782a34ae4b19e30bd36 Mon Sep 17 00:00:00 2001 From: Clement DEJOIE Date: Thu, 14 Mar 2024 20:19:53 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Add=20Compilation=20step=20in=20?= =?UTF-8?q?CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish-npm-package.yml | 3 +++ package.json | 2 +- tsconfig.build.json | 1 - 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-npm-package.yml b/.github/workflows/publish-npm-package.yml index 7da694f..7762125 100644 --- a/.github/workflows/publish-npm-package.yml +++ b/.github/workflows/publish-npm-package.yml @@ -21,6 +21,9 @@ jobs: - name: Update package version run: npm version --no-git-tag-version ${{ github.ref_name }} + - name: Compile + run: npm run tsc + - name: Publish to npm if: startsWith(github.ref, 'refs/tags/') run: npm publish --access public diff --git a/package.json b/package.json index e5fc1ec..b786b2e 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@zerogachis/smartway-design-token", "version": "0.0.1", "description": "Smartway design tokens", - "main": "src/index.ts", + "main": "lib/index.js", "scripts": { "type:check": "tsc", "tsc": "tsc --project tsconfig.build.json" diff --git a/tsconfig.build.json b/tsconfig.build.json index 5b4b760..7cad615 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -1,5 +1,4 @@ { "extends": "./tsconfig", "include": ["src"], - "exclude": ["**/*.test.tsx", "**/*.test.ts"] }