forked from philorg/treetrail-frontend
CI: set version dynamically
This commit is contained in:
parent
ed1a9242c9
commit
6aaf93b098
2 changed files with 11 additions and 2 deletions
|
@ -53,9 +53,18 @@ jobs:
|
||||||
- name: Update version.json from git describe
|
- name: Update version.json from git describe
|
||||||
run: pnpm run version
|
run: pnpm run version
|
||||||
|
|
||||||
|
- name: Set the version in package.json
|
||||||
|
env:
|
||||||
|
VERSION: ${{ steps.version.outputs.version }}
|
||||||
|
run: sed "s/0.0.0/${VERSION}/" -i package.json
|
||||||
|
|
||||||
- name: Build package (transpile ts => js)
|
- name: Build package (transpile ts => js)
|
||||||
run: ng build
|
run: ng build
|
||||||
|
|
||||||
|
- name: Publish
|
||||||
|
if: fromJSON(steps.builder.outputs.run)
|
||||||
|
run: pnpm publish
|
||||||
|
|
||||||
- name: Build container
|
- name: Build container
|
||||||
if: fromJSON(steps.builder.outputs.run)
|
if: fromJSON(steps.builder.outputs.run)
|
||||||
uses: actions/buildah-build@v1
|
uses: actions/buildah-build@v1
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "treetrail",
|
"name": "treetrail-frontend",
|
||||||
"version": "0.0.3",
|
"version": "0.0.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"ng": "ng",
|
"ng": "ng",
|
||||||
"start": "ng serve --proxy-config proxy.conf.json --port 4201 --serve-path /treetrail",
|
"start": "ng serve --proxy-config proxy.conf.json --port 4201 --serve-path /treetrail",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue