forked from selfagency/mastofeedbot
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 1.02 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
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: 20
- name: Check package version
id: check
uses: 'EndBug/version-check@36ff30f37c7deabe56a30caa043d127be658c425' # v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
diff-search: true
- name: Create release
uses: 'ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5' # v1
if: ${{ steps.check.outputs.changed == 'true' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag: v${{ steps.check.outputs.version}}
name: v${{ steps.check.outputs.version}}