-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.26 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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 }}