Skip to content

Commit f3d6bd0

Browse files
authored
ci: publish create-video-editor from master with semantic-release (#19)
1 parent e1cf9bf commit f3d6bd0

2 files changed

Lines changed: 59 additions & 0 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Release
2+
on:
3+
push:
4+
branches: [master]
5+
6+
concurrency:
7+
group: release
8+
cancel-in-progress: false
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
release:
15+
name: Release create-video-editor
16+
runs-on: ubuntu-latest
17+
18+
permissions:
19+
contents: write
20+
issues: write
21+
pull-requests: write
22+
# npm trusted publishing: no token, the registry trusts this workflow.
23+
id-token: write
24+
25+
steps:
26+
- uses: actions/checkout@v4
27+
with:
28+
fetch-depth: 0
29+
30+
- uses: actions/setup-node@v4
31+
with:
32+
node-version: 22
33+
34+
- name: Release
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
run: npx -y -p semantic-release@25 -p @semantic-release/git@10 semantic-release

‎.releaserc.json‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"branches": ["master"],
3+
"plugins": [
4+
[
5+
"@semantic-release/commit-analyzer",
6+
{
7+
"preset": "angular",
8+
"releaseRules": [{ "type": "chore", "subject": "bump Studio SDK*", "release": "patch" }]
9+
}
10+
],
11+
["@semantic-release/release-notes-generator", { "preset": "angular" }],
12+
"@semantic-release/npm",
13+
[
14+
"@semantic-release/git",
15+
{
16+
"assets": ["package.json"],
17+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
18+
}
19+
],
20+
"@semantic-release/github"
21+
]
22+
}

0 commit comments

Comments
 (0)