diff --git a/.yarnrc.build.yml b/.build.yarnrc.yml similarity index 100% rename from .yarnrc.build.yml rename to .build.yarnrc.yml diff --git a/.drone.yml b/.drone.yml index 8f70a40..55d5681 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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: diff --git a/.eslintrc.js b/.eslintrc.js index e8a534a..36bacbc 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -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', }, diff --git a/.npmignore b/.npmignore index bcade60..bfecfd5 100644 --- a/.npmignore +++ b/.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.* \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 4ddd526..1195c05 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 .