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