Skip to content

Commit

Permalink
Update release-canary.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedBaset authored Aug 5, 2024
1 parent c675a21 commit 3383d46
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions .github/workflows/release-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,34 @@ jobs:
with:
github-token: ${{ secrets.MY_GITHUB_TOKEN }}
script: |
const issue_number = context.issue.number;
const owner = context.repo.owner;
const repo = context.repo.repo;
github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
issue_number,
owner,
repo,
body: `
🚀 Successfully released canary version to npm.
🚀 A new Canary version has been released
You can install it by running:
\`\`\`bash
pnpm add eslint-plugin-rtl-friendly@${{ steps.publish.outputs.version }} -D
\`\`\`
`.replace(/\s+/g, ' ')
})
github.issues.removeLabel({
issue_number,
owner,
repo,
name: 'release canary'
});
github.issues.addLabels({
issue_number,
owner,
repo,
labels: ['canary released']
});

0 comments on commit 3383d46

Please sign in to comment.