Skip to content

Commit

Permalink
Merge pull request #7 from exile-watch/remove-debug
Browse files Browse the repository at this point in the history
fix: remove debug flag
  • Loading branch information
sbsrnt authored Mar 6, 2024
2 parents fe87a28 + e4e224d commit 8d372b5
Show file tree
Hide file tree
Showing 10 changed files with 174 additions and 60 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/preview-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,24 @@ jobs:
run: npm run build

- name: Lerna publish prerelease
id: lerna_publish
env:
CI: true
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npx lerna version prerelease --preid preview --yes --no-push --loglevel=debug
npx lerna publish from-git --dist-tag next --yes
output=$(npx lerna version prerelease --preid preview --yes --no-push && npx lerna publish from-git --dist-tag next --yes)
echo "publish_output=$output" >> $GITHUB_OUTPUT # Use the new syntax to set the output
- name: Comment PR with Published Versions
uses: actions/github-script@v7
with:
script: |
const output = `${{ steps.lerna_publish.outputs.publish_output }}`;
const prNumber = context.payload.pull_request.number;
const comment = `Published Packages:\n\`\`\`\n${output}\n\`\`\``;
github.rest.issues.createComment({
...context.repo,
issue_number: prNumber,
body: comment
});
Loading

0 comments on commit 8d372b5

Please sign in to comment.