Skip to content

Commit

Permalink
switch API to 1.0.0-beta.4 version
Browse files Browse the repository at this point in the history
  • Loading branch information
inistcnrs committed May 16, 2018
1 parent 012b49e commit 573780e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker-compose.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
args:
- http_proxy
- https_proxy
image: conditor/conditor-api:1.0.0-beta.3
image: conditor/conditor-api:1.0.0-beta.4
environment :
LOG_PATH: /var/log
CONDITOR_API_HOST: 0.0.0.0
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:

conditorapi:
container_name: conditor-api
image: conditor/conditor-api:1.0.0-beta.3
image: conditor/conditor-api:1.0.0-beta.4
environment :
LOG_PATH: /var/log
CONDITOR_API_HOST: 0.0.0.0
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "conditor-api",
"version": "1.0.0-beta.3",
"version": "1.0.0-beta.4",
"description": "Main api of the Conditor-project",
"main": "app.js",
"scripts": {
Expand Down

3 comments on commit 573780e

@kerphi
Copy link

@kerphi kerphi commented on 573780e May 16, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tu patch tous ces fichiers à la main ?
Tu peux peut-être t'inspirer des hook npm version ezmaster pour patcher automatiquement

@niederlec
Copy link
Member

@niederlec niederlec commented on 573780e May 17, 2018 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kerphi
Copy link

@kerphi kerphi commented on 573780e May 17, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Voici les commandes rajoutées qui permettent de patcher via un coup de sed les différents fichiers concernés par le numéro de version :
https://github.com/Inist-CNRS/ezmaster/blob/master/package.json#L8-L11

Et voici le hook qui se déclenche au moment où on génère une nouvelle version via par exemple la commande "npm version patch" :
https://github.com/Inist-CNRS/ezmaster/blob/master/package.json#L13

Et le dernier hook permet de faire une action une fois la version générée :
https://github.com/Inist-CNRS/ezmaster/blob/master/package.json#L14
(en gros ça va push les modif qui ont été réalisées par les sed et ca va aussi push le tag git qui a été généré automatiquement par "npm version patch")

En gros pour générer une nouvelle version c'est une seule ligne de commande pour le développeur:
npm version patch

(et il faut remplacer "patch" par "minor" ou "major" en fonction du type de version qu'on veut générer => Semantic Versioning)

Please sign in to comment.