Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove debug flag #7

Merged
merged 13 commits into from
Mar 6, 2024
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
Loading