Tweaks
This commit is contained in:
@@ -81,11 +81,15 @@ steps:
|
|||||||
- name: Publish NPM
|
- name: Publish NPM
|
||||||
image: node:20-alpine
|
image: node:20-alpine
|
||||||
failure: ignore
|
failure: ignore
|
||||||
|
environment:
|
||||||
|
NPM_TOKEN:
|
||||||
|
from_secret: reg_token
|
||||||
commands:
|
commands:
|
||||||
- yarn publish -t ${DRONE_TAG}
|
- yarn publish -t ${DRONE_TAG}
|
||||||
volumes:
|
volumes:
|
||||||
- name: npmrc
|
- name: npmrc
|
||||||
path: /drone/auth/.npmrc
|
path: /drone/auth/.npmrc
|
||||||
|
secrets: [reg_token]
|
||||||
- name: Report NPM Publish Status
|
- name: Report NPM Publish Status
|
||||||
image: plugins/webhook
|
image: plugins/webhook
|
||||||
settings:
|
settings:
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ module.exports = {
|
|||||||
plugins: ['@typescript-eslint'],
|
plugins: ['@typescript-eslint'],
|
||||||
settings: {
|
settings: {
|
||||||
'import/parsers': {
|
'import/parsers': {
|
||||||
'@typescript-eslint/parser': [".ts", ".tsx"],
|
'@typescript-eslint/parser': ['.ts', '.tsx'],
|
||||||
},
|
},
|
||||||
'import/resolver': 'typescript',
|
'import/resolver': 'typescript',
|
||||||
},
|
},
|
||||||
|
|||||||
11
.npmignore
11
.npmignore
@@ -1,8 +1,9 @@
|
|||||||
|
.build.yarnrc.yml
|
||||||
|
.drone.yml
|
||||||
|
.prettierrc
|
||||||
|
.yarnrc.yml
|
||||||
|
babel.config.*
|
||||||
|
jest.config.*
|
||||||
src
|
src
|
||||||
tsconfig.json
|
tsconfig.json
|
||||||
tslint.json
|
tslint.json
|
||||||
.prettierrc
|
|
||||||
.yarnrc.yml
|
|
||||||
.drone.yml
|
|
||||||
babel.config.*
|
|
||||||
jest.config.*
|
|
||||||
@@ -27,7 +27,7 @@ ENV NODE_ENV $ENV
|
|||||||
ENV NPM_TOKEN $NPM_TOKEN
|
ENV NPM_TOKEN $NPM_TOKEN
|
||||||
WORKDIR /home/node/app
|
WORKDIR /home/node/app
|
||||||
COPY .npmrc /root
|
COPY .npmrc /root
|
||||||
COPY .yarnrc.build.yml /root/.yarnrc.yml
|
COPY .build.yarnrc.yml /root/.yarnrc.yml
|
||||||
COPY package*.json yarn.lock ./
|
COPY package*.json yarn.lock ./
|
||||||
RUN yarn set version stable && yarn install && yarn cache clean
|
RUN yarn set version stable && yarn install && yarn cache clean
|
||||||
COPY --from=build /home/node/app/dist .
|
COPY --from=build /home/node/app/dist .
|
||||||
|
|||||||
Reference in New Issue
Block a user