From 1fc2bbb340b411d82baeb3e3b7fd2d6df7cc3454 Mon Sep 17 00:00:00 2001 From: Jialecl Date: Fri, 15 Dec 2023 10:39:26 +0100 Subject: [PATCH] changing publish path to lib/dist --- .github/workflows/publish-next.yml | 4 ++-- .github/workflows/publish-release.yml | 4 ++-- scripts/build/copy-readme.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) 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"));