Skip to content

Commit

Permalink
Merge pull request #58 from dxc-technology/jialecl-workflowPath
Browse files Browse the repository at this point in the history
Changing publish path to lib/dist
  • Loading branch information
kukoc authored Dec 15, 2023
2 parents 2b39bbd + 1fc2bbb commit 7f6ca7c
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 7f6ca7c

Please sign in to comment.