Skip to content

Commit 3aabb77

Browse files
committed
chore(ci): add release workflow
Refs #70 Closes #55
1 parent 223ecb3 commit 3aabb77

5 files changed

Lines changed: 6310 additions & 0 deletions

File tree

.github/workflows/release.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release:
10+
name: Release
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
issues: write
15+
pull-requests: write
16+
steps:
17+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
18+
with:
19+
fetch-depth: 0
20+
- name: Install dependencies
21+
run: npm ci
22+
- name: Release
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
run: npx semantic-release

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/node_modules/

.releaserc.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
release:
2+
branches:
3+
- main
4+
5+
plugins:
6+
- "@semantic-release/commit-analyzer"
7+
- "@semantic-release/release-notes-generator"
8+
-
9+
- semantic-release-replace-plugin
10+
- replacements:
11+
- files:
12+
- modules/servers/upCloudVps/lib/upCloudVps.php
13+
from: "'MODULE_VERSION', '.+?'"
14+
to: "'MODULE_VERSION', '${nextRelease.version}'"
15+
results:
16+
- file: modules/servers/upCloudVps/lib/upCloudVps.php
17+
hasChanged: true
18+
numMatches: 1
19+
numReplacements: 1
20+
countMatches: true
21+
-
22+
- "@semantic-release/git"
23+
- assets:
24+
- modules/servers/upCloudVps/lib/upCloudVps.php
25+
message: "chore: release ${nextRelease.version} [skip ci]"
26+
- "@semantic-release/github"

0 commit comments

Comments
 (0)