forked from Raystorms/FizzySteamyMirror
-
Notifications
You must be signed in to change notification settings - Fork 32
/
.releaserc.yml
65 lines (55 loc) · 2.08 KB
/
.releaserc.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
verifyConditions:
- "@semantic-release/github"
tagFormat: "FizzySteamworks-${version}"
plugins:
- - '@semantic-release/commit-analyzer'
- preset: "angular"
releaseRules:
- type: "breaking"
release: "major"
- type: "release"
release: "major"
- type: "feature"
release: "minor"
- - '@semantic-release/release-notes-generator'
- preset: "conventionalcommits"
presetConfig:
types:
- type: "breaking"
section: "Breaking Changes"
hidden: false
- type: "release"
section: "Release"
hidden: false
- type: "feature"
section: "Features"
hidden: false
# Update the version in the package.json file
- - '@semantic-release/npm'
- npmPublish: false
pkgRoot: "com.mirror.steamworks.net"
# Write the new version in version.txt
- - '@semantic-release/exec'
- prepareCmd: "echo ${nextRelease.version} > com.mirror.steamworks.net/version.txt"
# Temporarily move package files to root folder to exclude from normal .unitypackage
- - '@semantic-release/exec'
- prepareCmd: "mv com.mirror.steamworks.net/package.json package.json
&& mv com.mirror.steamworks.net/package.json.meta package.json.meta"
# Create Unity Package
- - '@semantic-release/exec'
- prepareCmd: "unity-packer pack FizzySteamworks.unitypackage com.mirror.steamworks.net Assets/Mirror/Transports/FizzySteamworks"
# Move package files back
- - '@semantic-release/exec'
- prepareCmd: "mv package.json com.mirror.steamworks.net/package.json
&& mv package.json.meta com.mirror.steamworks.net/package.json.meta "
# Commit changes where version was updated
- - '@semantic-release/git'
- assets:
- 'com.mirror.steamworks.net/version.txt'
- 'com.mirror.steamworks.net/package.json'
# Create a new release on GitHub
- - '@semantic-release/github'
- assets:
- path: "FizzySteamworks.unitypackage"
label: "FizzySteamworks Unity Package"
name: "FizzySteamworks-${nextRelease.version}.unitypackage"