[Manual] Create release #50
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "[Manual] Create release" | |
on: | |
workflow_dispatch: | |
jobs: | |
release: | |
name: Create release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set committer to github-actions | |
run: | | |
git config --local user.name github-actions[bot] | |
git config --local user.email 41898282+github-actions[bot]@users.noreply.github.com | |
- name: Use Node.js 18.x | |
uses: actions/setup-node@master | |
with: | |
node-version: 18.x | |
- name: Create release | |
run: | | |
corepack yarn workspaces foreach -pv -R --from '@kherock/yarn-plugin-*' --topological-dev run update-local | |
corepack yarn workspaces foreach -pv -A --exclude '@example/*' --topological-dev release | |
- name: Push release | |
run: | | |
corepack yarn release-commit | |
git push | |
git push --tags | |
- name: Create GitHub release | |
run: | | |
TAG=$(git describe --match 'v*' HEAD) | |
gh release create "$TAG" packages/plugin-*/bundles/@yarnpkg/* \ | |
--title "$TAG" \ | |
--notes "$(git show -s --format='%N' "$TAG" | tail -n +6)" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |