Skip to content

Commit 7f9dc40

Browse files
committed
fix: moved app version to docker
1 parent 92b97ab commit 7f9dc40

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ jobs:
1717
with:
1818
github-token: ${{ secrets.CHANGELOG_RELEASE }}
1919

20-
- name: version
21-
run: echo ${{ steps.changelog.outputs.tag }} && sed -i 's/0.0.0/${{ steps.changelog.outputs.tag }}/g' public/app.json
22-
2320
- name: create release
2421
uses: actions/create-release@v1
2522
if: ${{ steps.changelog.outputs.skipped == 'false' }}

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ COPY package*.json ./
77
RUN npm install --ignore-scripts
88
COPY . .
99

10+
RUN sed -i 's/0.0.0/'`npm -s run env echo '$npm_package_version'`'/g' public/app.json
1011
RUN npm run build
1112

1213
FROM node:15 as production

0 commit comments

Comments
 (0)