Skip to content

Commit

Permalink
changing publish path to lib/dist
Browse files Browse the repository at this point in the history
  • Loading branch information
Jialecl committed Dec 15, 2023
1 parent 2b39bbd commit 1fc2bbb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
4 changes: 2 additions & 2 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion scripts/build/copy-readme.js
Original file line number Diff line number Diff line change
@@ -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"));

0 comments on commit 1fc2bbb

Please sign in to comment.