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