From 35bf459ea5ecce960404b30d126169529f552803 Mon Sep 17 00:00:00 2001 From: Arthur Vivian Date: Mon, 28 Jun 2021 15:53:41 +0100 Subject: [PATCH] Fix build automation and only include dist files --- .github/workflows/publish.yml | 2 +- package.json | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d6754b4..561d350 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -22,7 +22,7 @@ jobs: - name: Run Tests run: npm test - name: Build - run: npm build + run: npm run build - name: Git config run: | git config --local user.email 'hello@rive.app' diff --git a/package.json b/package.json index 892d236..847957a 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,9 @@ "description": "React wrapper around the rive-js library", "main": "dist/index.js", "typings": "dist/types/index.d.ts", + "files": [ + "./dist/**" + ], "scripts": { "test": "jest", "build": "bunchee src/index.ts -m --no-sourcemap",