Fixing up version and others.

This commit is contained in:
Dessalines 2024-01-28 22:07:27 -05:00
parent bedc34d027
commit cfcc987fd3
3 changed files with 5 additions and 4 deletions

View file

@ -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 }]
] ]
} }

View file

@ -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

View file

@ -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