Skip to content

Commit 2e3e239

Browse files
build(.releaserc.json): deprecated updateVersion.sh in favor of semantic-release replace plugin
1 parent 7a30e13 commit 2e3e239

7 files changed

Lines changed: 242 additions & 65 deletions

File tree

.devcontainer/configurations/.zshrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,10 @@ source $ZSH/oh-my-zsh.sh
1717
DISABLE_AUTO_UPDATE=true
1818
DISABLE_UPDATE_PROMPT=true
1919

20+
# enable terminal commands history
21+
HISTFILE=~/.zsh_history
22+
HISTSIZE=1000
23+
SAVEHIST=1000
24+
2025
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
2126
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh

.devcontainer/devcontainer.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,18 @@
22
{
33
"name": "Java",
44
"image": "mcr.microsoft.com/devcontainers/java",
5+
"workspaceFolder": "/usr/share/rtldev-middleware-java-sdk",
6+
"workspaceMount": "source=${localWorkspaceFolder},target=/usr/share/rtldev-middleware-java-sdk,type=bind",
57
"customizations": {
68
"vscode": {
79
"zsh": {
810
"path": "zsh"
9-
}
10-
},
11-
"extensions": [
12-
"vscjava.vscode-java-pack"
13-
]
11+
},
12+
"extensions": [
13+
"vscjava.vscode-java-pack",
14+
"eamodio.gitlens"
15+
]
16+
}
1417
},
1518
"features": {
1619
"ghcr.io/devcontainers/features/node:1": {

.devcontainer/post-create.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ npm install -g commitizen
1010
echo '{"path": "cz-conventional-changelog"}' >> ~/.czrc
1111

1212
export ZSH_CUSTOM=/home/vscode/.oh-my-zsh/custom
13-
export CONFIGURATION_PATH=/workspaces/rtldev-middleware-java-sdk/.devcontainer/configurations
13+
export CONFIGURATION_PATH=${OLDPWD}/.devcontainer/configurations
1414
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k \
1515
&& chown -R vscode:vscode $ZSH_CUSTOM/themes/powerlevel10k
1616

.releaserc.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"ci": false,
23
"plugins": [
34
"@semantic-release/commit-analyzer",
45
"@semantic-release/release-notes-generator",
@@ -9,9 +10,18 @@
910
}
1011
],
1112
[
12-
"@semantic-release/exec",
13+
"semantic-release-replace-plugin",
1314
{
14-
"prepareCmd": "./updateVersion.sh ${nextRelease.version}"
15+
"replacements": [
16+
{
17+
"files": [
18+
"src/main/java/net/hexonet/apiconnector/APIClient.java"
19+
],
20+
"from": "\"\\d+\\.\\d+\\.\\d+\"",
21+
"to": "\"${nextRelease.version}\"",
22+
"countMatches": true
23+
}
24+
]
1525
}
1626
],
1727
[

0 commit comments

Comments
 (0)