From c3083068072293767c3744b8546e3935bbb57ba4 Mon Sep 17 00:00:00 2001 From: Allan Almeida Date: Tue, 26 Sep 2023 01:45:10 +1000 Subject: [PATCH] update publish action --- .github/workflows/publish.yaml | 12 ++++++++++++ package-lock.json | 2 ++ 2 files changed, 14 insertions(+) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index b3bf27cc..8ea88f88 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -46,6 +46,18 @@ jobs: tmp=$(mktemp) jq '.version = "${{ steps.clean-tag.outputs.TAG }}"' ./package.json > "$tmp" && mv "$tmp" ./package.json + - name: Install dependencies + run: | + npm install + + - name: Compile contracts + run: | + npm run compile + + - name: Build dist files + run: | + rm -rf dist && npm run build + - name: Publish package uses: JS-DevTools/npm-publish@v1 with: diff --git a/package-lock.json b/package-lock.json index 2eb5c88f..97c1ec4c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10611,6 +10611,7 @@ "resolved": "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.5.tgz", "integrity": "sha512-HTm14iMQKK2FjFLRTM5lAVcyaUzOnqbPtesFIvREgXpJHdQm8bWS+GkQgIkfaBYRHuCnea7w8UVNfwiAQhlr9A==", "dev": true, + "hasInstallScript": true, "optional": true, "dependencies": { "node-gyp-build": "^4.3.0" @@ -10973,6 +10974,7 @@ "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.7.tgz", "integrity": "sha512-vLt1O5Pp+flcArHGIyKEQq883nBt8nN8tVBcoL0qUXj2XT1n7p70yGIq2VK98I5FdZ1YHc0wk/koOnHjnXWk1Q==", "dev": true, + "hasInstallScript": true, "optional": true, "dependencies": { "node-gyp-build": "^4.3.0"