mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-01 08:41:14 +00:00
Fixing up version and others.
This commit is contained in:
parent
bedc34d027
commit
cfcc987fd3
3 changed files with 5 additions and 4 deletions
2
.babelrc
2
.babelrc
|
@ -15,6 +15,6 @@
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"@babel/plugin-transform-runtime",
|
"@babel/plugin-transform-runtime",
|
||||||
["babel-plugin-inferno", { "imports": true }],
|
["babel-plugin-inferno", { "imports": true }],
|
||||||
["@babel/plugin-proposal-class-properties", { "loose": true }]
|
["@babel/plugin-transform-class-properties", { "loose": true }]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,7 @@ ENV npm_config_target_libc=musl
|
||||||
|
|
||||||
# Cache deps
|
# Cache deps
|
||||||
COPY package.json pnpm-lock.yaml ./
|
COPY package.json pnpm-lock.yaml ./
|
||||||
RUN pnpm i --production --prefer-offline
|
RUN pnpm i
|
||||||
# Build
|
# Build
|
||||||
COPY generate_translations.js \
|
COPY generate_translations.js \
|
||||||
tsconfig.json \
|
tsconfig.json \
|
||||||
|
@ -31,7 +31,8 @@ COPY .git .git
|
||||||
# Set UI version
|
# Set UI version
|
||||||
RUN echo "export const VERSION = '$(git describe --tag)';" > "src/shared/version.ts"
|
RUN echo "export const VERSION = '$(git describe --tag)';" > "src/shared/version.ts"
|
||||||
|
|
||||||
RUN pnpm i --production --prefer-offline
|
RUN pnpm i
|
||||||
|
RUN pnpm prebuild:prod
|
||||||
RUN pnpm build:prod
|
RUN pnpm build:prod
|
||||||
|
|
||||||
RUN rm -rf ./node_modules/import-sort-parser-typescript
|
RUN rm -rf ./node_modules/import-sort-parser-typescript
|
||||||
|
|
|
@ -9,7 +9,7 @@ new_tag="$1"
|
||||||
# sudo docker push dessalines/lemmy-ui:$new_tag
|
# sudo docker push dessalines/lemmy-ui:$new_tag
|
||||||
|
|
||||||
# Upgrade version
|
# Upgrade version
|
||||||
npm version $new_tag
|
pnpm version $new_tag
|
||||||
git push
|
git push
|
||||||
|
|
||||||
git tag $new_tag
|
git tag $new_tag
|
||||||
|
|
Loading…
Reference in a new issue