Skip to content

Commit

Permalink
Update version (#44)
Browse files Browse the repository at this point in the history
Reviewed-on: https://git.vdb.to/cerc-io/laconic-console/pulls/44
Co-authored-by: Thomas E Lackey <[email protected]>
Co-committed-by: Thomas E Lackey <[email protected]>
  • Loading branch information
telackey authored and Thomas E Lackey committed Jan 15, 2024
1 parent 3458f45 commit 9dcbc6e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitea/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- run: yarn
- name: Run yarn build
run: |
yarn build
yarn dist
- name: Configure git.vdb.to npm registry
run: |
npm config set registry https://git.vdb.to/api/packages/cerc-io/npm/
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cerc-io/console-app",
"version": "1.3.2",
"version": "1.3.3",
"description": "Laconic Console",
"repository": "https://github.com/cerc-io/laconic-console",
"main": "dist/es/index.js",
Expand All @@ -12,7 +12,8 @@
"build": "yarn dist",
"build:babel": "babel ./src --out-dir ./dist/es --ignore \"**/*.test.js\" --source-maps inline",
"clean": "rm -rf dist",
"dist": "yarn clean && yarn build:babel && CONFIG_FILE=${LACONIC_HOSTED_CONFIG_FILE:-config-production.yml} webpack",
"updatever": "scripts/update_version.sh > src/version.json",
"dist": "yarn clean && yarn updatever && yarn build:babel && CONFIG_FILE=${LACONIC_HOSTED_CONFIG_FILE:-config-production.yml} webpack",
"lint": "semistandard 'src/**/*.js'",
"start": "CONFIG_FILE=${CONFIG_FILE:-config-testnet.yml} VERBOSE=true webpack-dev-server --mode development",
"test": "jest --rootDir ./src --passWithNoTests --no-cache"
Expand Down
8 changes: 8 additions & 0 deletions scripts/update_version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#/bin/bash


NAME=`cat package.json | jq '.name'`
VERSION=`cat package.json | jq '.version'`
DATE=`date --rfc-3339=seconds`

echo '{"build": {}}' | jq ".build.name = $NAME" | jq ".build.version = $VERSION" | jq ".build.buildDate = \"$DATE\""
6 changes: 3 additions & 3 deletions src/version.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"build": {
"name": "@cerc-io/console-app",
"buildDate": "2020-12-19T03:06:08.492Z",
"version": "1.2.9-alpha.1"
"name": "",
"version": "",
"buildDate": ""
}
}

0 comments on commit 9dcbc6e

Please sign in to comment.