Skip to content

Commit

Permalink
fix: CI push coverage report & add dynamic version to build
Browse files Browse the repository at this point in the history
  • Loading branch information
micwallace committed Jan 10, 2023
1 parent a54ed5a commit 337d983
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/tn-p1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ jobs:
annotations: failed-tests
test-script: npm run test

- name: test
if: github.event_name == 'push'
run: npm run test

- uses: actions/upload-artifact@v3
with:
name: test-report
Expand Down
3 changes: 2 additions & 1 deletion src/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ import {LocalOutlet} from "../outlet/localOutlet";
import {Outlet, OutletInterface} from "../outlet";
import { browserBlocksIframeStorage } from "../utils/support/getBrowserData";
import { waitForElementToExist, errorHandler } from '../utils/index';
import { version } from "../../package.json"

if(typeof window !== "undefined") window.tn = { version: "2.2.0" };
if(typeof window !== "undefined") window.tn = { version };

declare global {
interface Window {
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"declaration": true,
"declarationMap": true
"declarationMap": true,
"resolveJsonModule": true
}
}
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"node_modules/@types",
"src/typings"
],
"experimentalDecorators": true
"experimentalDecorators": true,
"resolveJsonModule": true
},
"include": ["src"],
"exclude": ["node_modules", "**/__tests__/*", "examples"],
Expand Down

0 comments on commit 337d983

Please sign in to comment.