Skip to content

Commit

Permalink
chore: Update release-canary.yml and cleanup release process
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedBaset committed Aug 5, 2024
1 parent 5085adb commit e0feb85
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/release-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ on:
concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
works:
name: I work
runs-on: ubuntu-latest
steps:
- run: echo "I work"
release:
name: Release
timeout-minutes: 10
Expand All @@ -33,8 +28,9 @@ jobs:
id: publish
run: |
pnpm changeset version --snapshot ${{ github.event.number }}
pnpm -w publish --access public --tag canary --no-git-checks
npm publish --access public --tag canary --no-git-checks
echo "published=true" >> "$GITHUB_OUTPUT"
echo "version=$(npm pkg get version | sed -e 's/^"//;s/"$//')" >> "$GITHUB_OUTPUT"
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
Expand All @@ -53,8 +49,8 @@ jobs:
body: `
🚀 Successfully released canary version to npm.
You can install it by running:
\`\`\`bash
pnpm add eslint-plugin-rtl-friendly@${{ steps.publish.outputs.version }} -D
\`\`\`
pnpm add eslint-plugin-rtl@canary
\`\`\`
`.replace(/^\s+|\s+$/g, '')
`.replace(/\s+/g, '')
})

0 comments on commit e0feb85

Please sign in to comment.