-
-
Notifications
You must be signed in to change notification settings - Fork 1
27 lines (19 loc) · 758 Bytes
/
Copy pathrelease.yml
File metadata and controls
27 lines (19 loc) · 758 Bytes
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
name: release
on:
pull_request:
types: [closed]
permissions:
contents: read
jobs:
release:
if: (github.event.pull_request.merged == true) && (github.event.pull_request.user.login == 'lumirlumir') && contains(github.event.pull_request.title, 'chore(release)') && startsWith(github.event.pull_request.head.ref, 'chore-release-bump-package-versions-from-v')
runs-on: ubuntu-slim
env:
GH_TOKEN: ${{ secrets.GH_PAT }}
steps:
- name: Set up checkout
uses: actions/checkout@v6
- name: Set up environment variables
run: echo "CURRENT_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
- name: Release
run: gh release edit v${{ env.CURRENT_VERSION }} --draft=false