diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index ad9f8e680..fdb3a78b6 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -32,7 +32,7 @@ jobs: run: yarn lint - name: Build Packages - run: BASE_PATH=/react-icons cd packages/preview/ && yarn build + run: BASE_PATH=/react-icons ./build-script.sh - uses: actions/upload-artifact@v3 with: diff --git a/build-script.sh b/build-script.sh index b185aa0b0..db459d763 100755 --- a/build-script.sh +++ b/build-script.sh @@ -6,6 +6,4 @@ time (cd packages/react-icons/ && yarn diff) (cd packages/_react-icons/ && npm pack |& tail) (cd packages/_react-icons-pack/ && npm pack |& tail) -# Publish -npm publish packages/_react-icons/*.tgz -npm publish packages/_react-icons-pack/*.tgz +(cd packages/preview/ && yarn build) diff --git a/publish-script.sh b/publish-script.sh new file mode 100644 index 000000000..3e8924007 --- /dev/null +++ b/publish-script.sh @@ -0,0 +1,3 @@ +# Publish +npm publish packages/_react-icons/*.tgz +npm publish packages/_react-icons-pack/*.tgz