diff --git a/.github/workflows/publish-next.yml b/.github/workflows/publish-next.yml index 246be92..54274db 100644 --- a/.github/workflows/publish-next.yml +++ b/.github/workflows/publish-next.yml @@ -29,8 +29,8 @@ jobs: - name: Publish NEXT version to npm run: | - sed -i "s#\"version\": \"0.0.0\"#\"version\": \"0.0.0-${GITHUB_SHA:0:7}\"#" ./lib/package.json - cd lib + sed -i "s#\"version\": \"0.0.0\"#\"version\": \"0.0.0-${GITHUB_SHA:0:7}\"#" ./lib/dist/package.json + cd lib/dist npm publish --tag next --access public env: NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index cae1d4a..bbde8cf 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -29,8 +29,8 @@ jobs: - name: Publish RELEASE to npm run: | - sed -i "s#\"version\": \"0.0.0\"#\"version\": \"${TAG_NAME}\"#" ./lib/package.json - cd lib + sed -i "s#\"version\": \"0.0.0\"#\"version\": \"${TAG_NAME}\"#" ./lib/dist/package.json + cd lib/dist npm publish --access public env: NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} diff --git a/scripts/build/copy-readme.js b/scripts/build/copy-readme.js index 26b3b4a..cf30951 100644 --- a/scripts/build/copy-readme.js +++ b/scripts/build/copy-readme.js @@ -1,3 +1,3 @@ const fs = require("fs"); -fs.createReadStream("./README.md").pipe(fs.createWriteStream("./lib/README.md")); +fs.createReadStream("./README.md").pipe(fs.createWriteStream("./lib/dist/README.md"));