Tweaks
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build was killed

This commit is contained in:
2023-05-24 10:46:01 -04:00
parent 9c4e47fb72
commit f2dce58f5e
5 changed files with 12 additions and 7 deletions

View File

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

View File

@@ -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',
}, },

View File

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

View File

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