Skip to content

Commit

Permalink
ci: add npm and github tokens (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
ronkatz96 authored Jan 4, 2021
1 parent 998f4fc commit bae6c20
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
12 changes: 8 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,15 @@ node {
}

stage("Release") {
echo "{$env.BRANCH_NAME}"
if ((env.BRANCH_NAME == 'master') || (env.BRANCH_NAME == 'development')) {
echo "release branch: ${env.BRANCH_NAME}"
sh "npx semantic-release"
withCredentials([string(credentialsId:'GitHubToken', variable: 'GITHUB_TOKEN')]) {
withCredentials([string(credentialsId:'NpmToken', variable: 'NPM_TOKEN')]) {
echo "{$env.BRANCH_NAME}"
if ((env.BRANCH_NAME == 'master') || (env.BRANCH_NAME == 'development')) {
echo "release branch: ${env.BRANCH_NAME}"
sh "npx semantic-release"
}
}
}
}

stage("Clean directory") {
Expand Down
20 changes: 10 additions & 10 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export * from './entities';
export { createLogger } from './winston-logger';
export { AbstractPolarisLogger } from './abstract-polaris-logger';
export { PolarisLogger } from './polaris-logger';
export { PolarisLogProperties } from './polaris-log-properties';
export { LoggerConfiguration } from './configurations/logger-configuration';
export { LogstashConfiguration } from './configurations/logstash-configuration';
export { LogstashProtocol } from './configurations/logstash-protocol';
export { LoggerLevel } from './configurations/logger-level';
export { ApplicationProperties } from '@enigmatis/polaris-common';
export * from './entities';
export { createLogger } from './winston-logger';
export { AbstractPolarisLogger } from './abstract-polaris-logger';
export { PolarisLogger } from './polaris-logger';
export { PolarisLogProperties } from './polaris-log-properties';
export { LoggerConfiguration } from './configurations/logger-configuration';
export { LogstashConfiguration } from './configurations/logstash-configuration';
export { LogstashProtocol } from './configurations/logstash-protocol';
export { LoggerLevel } from './configurations/logger-level';
export { ApplicationProperties } from '@enigmatis/polaris-common';

0 comments on commit bae6c20

Please sign in to comment.