Skip to content

Commit 4636668

Browse files
committed
ci: update semantic templates
1 parent dfbb989 commit 4636668

File tree

2 files changed

+40
-50
lines changed

2 files changed

+40
-50
lines changed

templates/ci/.github/workflows/ci.yml

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@ name: CI
22
on:
33
push:
44
branches:
5-
- master
6-
5+
- master
6+
77
jobs:
88
semantic-release:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
12-
with:
13-
fetch-depth: 0
14-
- uses: actions/setup-node@v2
15-
with:
16-
node-version: 14
17-
- name: Semantic release
18-
id: semantic
19-
uses: cycjimmy/semantic-release-action@v3
20-
with:
21-
semantic_version: 17
22-
env:
23-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
11+
- uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 0
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: 16
17+
- name: Semantic release
18+
id: semantic
19+
uses: cycjimmy/semantic-release-action@v4
20+
with:
21+
semantic_version: 17
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2424
outputs:
2525
new_release_published: ${{ steps.semantic.outputs.new_release_published }}
2626
new_release_version: ${{ steps.semantic.outputs.new_release_version }}
@@ -29,26 +29,26 @@ jobs:
2929
needs: semantic-release
3030
runs-on: ubuntu-latest
3131
steps:
32-
- uses: actions/checkout@v3
33-
with:
34-
fetch-depth: 0
35-
- name: Create upm branch
36-
run: |
37-
git branch -d upm &> /dev/null || echo upm branch not found
38-
git subtree split -P "$PKG_ROOT" -b upm
39-
git checkout upm
40-
if [[ -d "Samples" ]]; then
41-
git mv Samples Samples~
42-
rm -f Samples.meta
43-
git config --global user.name 'github-bot'
44-
git config --global user.email '[email protected]'
45-
git commit -am "fix: Samples => Samples~"
46-
fi
47-
git push -f -u origin upm
48-
env:
49-
PKG_ROOT: Assets/Package
50-
- name: Create upm git tag
51-
if: needs.semantic-release.outputs.new_release_published == 'true'
52-
run: |
53-
git tag ${{ needs.semantic-release.outputs.new_release_version }} upm
54-
git push origin --tags
32+
- uses: actions/checkout@v4
33+
with:
34+
fetch-depth: 0
35+
- name: Create upm branch
36+
run: |
37+
git branch -d upm &> /dev/null || echo upm branch not found
38+
git subtree split -P "$PKG_ROOT" -b upm
39+
git checkout upm
40+
if [[ -d "Samples" ]]; then
41+
git mv Samples Samples~
42+
rm -f Samples.meta
43+
git config --global user.name 'github-bot'
44+
git config --global user.email '[email protected]'
45+
git commit -am "fix: Samples => Samples~"
46+
fi
47+
git push -f -u origin upm
48+
env:
49+
PKG_ROOT: Assets/Package
50+
- name: Create upm git tag
51+
if: needs.semantic-release.outputs.new_release_published == 'true'
52+
run: |
53+
git tag ${{ needs.semantic-release.outputs.new_release_version }} upm
54+
git push origin --tags

templates/ci/.releaserc.json

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,11 @@
11
{
22
"tagFormat": "v${version}",
3+
"preset": "angular",
34
"plugins": [
4-
[
5-
"@semantic-release/commit-analyzer",
6-
{
7-
"preset": "angular"
8-
}
9-
],
5+
"@semantic-release/commit-analyzer",
106
"@semantic-release/release-notes-generator",
117
[
128
"@semantic-release/changelog",
13-
{
14-
"preset": "angular"
15-
}
16-
],
17-
[
18-
"@semantic-release/npm",
199
{
2010
"npmPublish": false,
2111
"pkgRoot": "Assets/Package"

0 commit comments

Comments
 (0)