-
Notifications
You must be signed in to change notification settings - Fork 4
48 lines (44 loc) · 1.25 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
40
41
42
43
44
45
46
47
48
name: Release
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: read
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 16
- name: Check package version
id: check
uses: 'EndBug/version-check@v1'
with:
token: ${{ secrets.GITHUB_TOKEN }}
diff-search: true
# - name: Generate changelog
# id: changelog
# uses: 'mikepenz/release-changelog-builder-action@v2'
# if: ${{ steps.check.outputs.changed == 'true' }}
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# continue-on-error: true
- name: Create release
uses: 'zendesk/action-create-release@v1'
if: ${{ steps.check.outputs.changed == 'true' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ steps.check.outputs.version}}
# body: ${{ steps.changelog.outputs.changelog }}
release_name: v${{ steps.check.outputs.version}}
draft: false
prerelease: false