Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(.releaserc.json): deprecated updateVersion.sh in favor of semantic-release replace plugin #202

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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