Skip to content

Commit

Permalink
build(.releaserc.json): deprecated updateVersion.sh in favor of seman…
Browse files Browse the repository at this point in the history
…tic-release replace plugin
  • Loading branch information
AsifNawaz-cnic committed May 30, 2024
1 parent 7a30e13 commit 2e3e239
Show file tree
Hide file tree
Showing 7 changed files with 242 additions and 65 deletions.
5 changes: 5 additions & 0 deletions .devcontainer/configurations/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,10 @@ source $ZSH/oh-my-zsh.sh
DISABLE_AUTO_UPDATE=true
DISABLE_UPDATE_PROMPT=true

# enable terminal commands history
HISTFILE=~/.zsh_history
HISTSIZE=1000
SAVEHIST=1000

# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
13 changes: 8 additions & 5 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@
{
"name": "Java",
"image": "mcr.microsoft.com/devcontainers/java",
"workspaceFolder": "/usr/share/rtldev-middleware-java-sdk",
"workspaceMount": "source=${localWorkspaceFolder},target=/usr/share/rtldev-middleware-java-sdk,type=bind",
"customizations": {
"vscode": {
"zsh": {
"path": "zsh"
}
},
"extensions": [
"vscjava.vscode-java-pack"
]
},
"extensions": [
"vscjava.vscode-java-pack",
"eamodio.gitlens"
]
}
},
"features": {
"ghcr.io/devcontainers/features/node:1": {
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/post-create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ npm install -g commitizen
echo '{"path": "cz-conventional-changelog"}' >> ~/.czrc

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

Expand Down
14 changes: 12 additions & 2 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"ci": false,
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
Expand All @@ -9,9 +10,18 @@
}
],
[
"@semantic-release/exec",
"semantic-release-replace-plugin",
{
"prepareCmd": "./updateVersion.sh ${nextRelease.version}"
"replacements": [
{
"files": [
"src/main/java/net/hexonet/apiconnector/APIClient.java"
],
"from": "\"\\d+\\.\\d+\\.\\d+\"",
"to": "\"${nextRelease.version}\"",
"countMatches": true
}
]
}
],
[
Expand Down
Loading

0 comments on commit 2e3e239

Please sign in to comment.