From 0f7ac7ba8b3a6ad3958244868f7f50e14e54578e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Sat, 10 Apr 2021 19:14:36 +0200 Subject: [PATCH] Added empty .npmignore to override .gitignore --- .github/workflows/push-to-npm.yml | 3 +++ front/packages/iframe-api-typings/.npmignore | 0 2 files changed, 3 insertions(+) create mode 100644 front/packages/iframe-api-typings/.npmignore diff --git a/.github/workflows/push-to-npm.yml b/.github/workflows/push-to-npm.yml index 18404dc0..354cb651 100644 --- a/.github/workflows/push-to-npm.yml +++ b/.github/workflows/push-to-npm.yml @@ -42,12 +42,15 @@ jobs: env: API_URL: "localhost:8080" working-directory: "front" + # We build the front to generate the typings of iframe_api, then we copy those typings in a separate package. - name: Copy typings to package dir run: cp front/dist/src/iframe_api.d.ts front/packages/iframe-api-typings/iframe_api.d.ts + - name: Install dependencies in package run: yarn install working-directory: "front/packages/iframe-api-typings" + - name: Publish package run: yarn publish working-directory: "front/packages/iframe-api-typings" diff --git a/front/packages/iframe-api-typings/.npmignore b/front/packages/iframe-api-typings/.npmignore new file mode 100644 index 00000000..e69de29b