Skip to content

Commit 2523f97

Browse files
Format and name workflows
1 parent af6c2ca commit 2523f97

File tree

2 files changed

+23
-22
lines changed

2 files changed

+23
-22
lines changed

.github/workflows/publish.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
name: Publish
12
on:
23
repository_dispatch:
3-
types: [ release-complete ]
4+
types: [release-complete]
45

56
jobs:
67
publish:
@@ -17,9 +18,9 @@ jobs:
1718

1819
dispatch:
1920
runs-on: ubuntu-latest
20-
needs: [ publish ]
21+
needs: [publish]
2122
steps:
22-
- name: Repository Dispatch
23-
uses: peter-evans/repository-dispatch@v3
24-
with:
25-
event-type: publish-complete
23+
- name: Repository Dispatch
24+
uses: peter-evans/repository-dispatch@v3
25+
with:
26+
event-type: publish-complete

.github/workflows/release.yml

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
name: Release
12
on: [push, pull_request]
23

34
jobs:
@@ -8,19 +9,19 @@ jobs:
89
- uses: actions/checkout@v4
910
with:
1011
fetch-depth: 0
11-
lfs: true
12+
lfs: true
1213
- name: Fetch next version
1314
id: nextVersion
1415
uses: VisualPinball/next-version-action@v0
1516
with:
16-
tagPrefix: 'v'
17+
tagPrefix: "v"
1718
- name: Bump
18-
if: ${{ steps.nextVersion.outputs.isBump == 'true' }}
19+
if: ${{ steps.nextVersion.outputs.isBump == 'true' }}
1920
run: |
20-
npm version ${{ steps.nextVersion.outputs.nextVersion }} --no-git-tag-version
21+
npm version ${{ steps.nextVersion.outputs.nextVersion }} --no-git-tag-version
2122
- name: Commit
2223
id: commit
23-
if: ${{ steps.nextVersion.outputs.isBump == 'true' }}
24+
if: ${{ steps.nextVersion.outputs.isBump == 'true' }}
2425
run: |
2526
git config user.name "github-actions"
2627
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
@@ -34,18 +35,17 @@ jobs:
3435
- name: Create Release
3536
uses: softprops/action-gh-release@v2
3637
with:
37-
tag_name: ${{ steps.nextVersion.outputs.nextTag }}
38-
name: ${{ steps.nextVersion.outputs.nextTag }}
39-
prerelease: ${{ steps.nextVersion.outputs.isPrerelease }}
40-
target_commitish: ${{ steps.commit.outputs.commitish }}
41-
token: ${{ secrets.GITHUB_TOKEN }}
38+
tag_name: ${{ steps.nextVersion.outputs.nextTag }}
39+
name: ${{ steps.nextVersion.outputs.nextTag }}
40+
prerelease: ${{ steps.nextVersion.outputs.isPrerelease }}
41+
target_commitish: ${{ steps.commit.outputs.commitish }}
42+
token: ${{ secrets.GITHUB_TOKEN }}
4243

4344
dispatch:
4445
runs-on: ubuntu-latest
45-
needs: [ release ]
46+
needs: [release]
4647
steps:
47-
- name: Repository Dispatch
48-
uses: peter-evans/repository-dispatch@v3
49-
with:
50-
event-type: release-complete
51-
48+
- name: Repository Dispatch
49+
uses: peter-evans/repository-dispatch@v3
50+
with:
51+
event-type: release-complete

0 commit comments

Comments
 (0)