mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 01:47:39 +00:00
feat: use node 15, use package version (#2066)
This commit is contained in:
@@ -15,7 +15,7 @@ jobs:
|
|||||||
id: release
|
id: release
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
release-type: simple
|
release-type: node
|
||||||
changelog-path: CHANGELOG.md
|
changelog-path: CHANGELOG.md
|
||||||
package-name: streetmerchant
|
package-name: streetmerchant
|
||||||
- name: Login into GitHub Container Registry
|
- name: Login into GitHub Container Registry
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
14.15.4
|
15.10.0
|
||||||
|
|||||||
+2
-3
@@ -1,4 +1,4 @@
|
|||||||
FROM node:15.9.0-alpine3.12 AS builder
|
FROM node:15.10.0-alpine3.12 AS builder
|
||||||
|
|
||||||
LABEL org.opencontainers.image.source="https://github.com/jef/streetmerchant"
|
LABEL org.opencontainers.image.source="https://github.com/jef/streetmerchant"
|
||||||
|
|
||||||
@@ -15,7 +15,7 @@ COPY src/ src/
|
|||||||
RUN npm run compile
|
RUN npm run compile
|
||||||
RUN npm prune --production
|
RUN npm prune --production
|
||||||
|
|
||||||
FROM node:15.9.0-alpine3.12
|
FROM node:15.10.0-alpine3.12
|
||||||
|
|
||||||
RUN apk add --no-cache chromium
|
RUN apk add --no-cache chromium
|
||||||
|
|
||||||
@@ -35,7 +35,6 @@ COPY --from=builder /build/node_modules/ node_modules/
|
|||||||
COPY --from=builder /build/build/ build/
|
COPY --from=builder /build/build/ build/
|
||||||
COPY web/ web/
|
COPY web/ web/
|
||||||
COPY package.json package.json
|
COPY package.json package.json
|
||||||
COPY version.txt version.txt
|
|
||||||
|
|
||||||
ENTRYPOINT ["npm", "run"]
|
ENTRYPOINT ["npm", "run"]
|
||||||
CMD ["start:production"]
|
CMD ["start:production"]
|
||||||
|
|||||||
Generated
+11803
-16
File diff suppressed because it is too large
Load Diff
+2
-1
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "streetmerchant",
|
"name": "streetmerchant",
|
||||||
|
"version": "3.4.1",
|
||||||
"description": "The world's easiest, most powerful stock checker",
|
"description": "The world's easiest, most powerful stock checker",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -17,7 +18,7 @@
|
|||||||
"test:notification:production": "node build/test/functional/test-notification.js"
|
"test:notification:production": "node build/test/functional/test-notification.js"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=12.0.0 <15.0.0"
|
"node": ">=12.0.0"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
+2
-5
@@ -1,7 +1,4 @@
|
|||||||
import chalk from 'chalk';
|
import chalk from 'chalk';
|
||||||
import {readFileSync} from 'fs';
|
|
||||||
|
|
||||||
const version = readFileSync('version.txt', 'utf8');
|
|
||||||
|
|
||||||
export const banner = {
|
export const banner = {
|
||||||
asciiVersion: `
|
asciiVersion: `
|
||||||
@@ -14,12 +11,12 @@ export const banner = {
|
|||||||
░ ░▒ ░ ░ ░ ░▒ ░ ▒░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░▒ ░ ▒░ ░ ▒ ▒ ░▒░ ░ ▒ ▒▒ ░░ ░░ ░ ▒░ ░
|
░ ░▒ ░ ░ ░ ░▒ ░ ▒░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░▒ ░ ▒░ ░ ▒ ▒ ░▒░ ░ ▒ ▒▒ ░░ ░░ ░ ▒░ ░
|
||||||
░ ░ ░ ░ ░░ ░ ░ ░ ░ ░ ░ ░ ░░ ░ ░ ░ ░░ ░ ░ ▒ ░ ░ ░ ░
|
░ ░ ░ ░ ░░ ░ ░ ░ ░ ░ ░ ░ ░░ ░ ░ ░ ░░ ░ ░ ▒ ░ ░ ░ ░
|
||||||
░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░
|
░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░
|
||||||
${version}`,
|
${process.env.npm_package_version}`,
|
||||||
render(ascii: boolean, hexColor: string) {
|
render(ascii: boolean, hexColor: string) {
|
||||||
return chalk
|
return chalk
|
||||||
.hex(hexColor)
|
.hex(hexColor)
|
||||||
.bold(ascii ? this.asciiVersion : this.stringVersion);
|
.bold(ascii ? this.asciiVersion : this.stringVersion);
|
||||||
},
|
},
|
||||||
stringVersion: `STREETMERCHANT
|
stringVersion: `STREETMERCHANT
|
||||||
${version}`,
|
${process.env.npm_package_version}`,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
3.4.1
|
|
||||||
Reference in New Issue
Block a user