-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Jenkinsfile and build to copy readme etc. to dist
- Loading branch information
Sami Kauranen
committed
Jan 30, 2020
1 parent
a27895c
commit 07ebd5e
Showing
5 changed files
with
152 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
library '[email protected]' | ||
|
||
podTemplate(label: pod.label, | ||
containers: pod.templates + [ | ||
containerTemplate(name: 'node', image: 'node:12', ttyEnabled: true, command: '/bin/sh -c', args: 'cat'), | ||
] | ||
) { | ||
node(pod.label) { | ||
stage('Checkout') { | ||
checkout scm | ||
} | ||
stage('Build') { | ||
container('node') { | ||
sh """ | ||
npm ci | ||
npm run build | ||
""" | ||
} | ||
} | ||
stage('Publish tag') { | ||
dir("dist/ngx-resource-calenadar") { | ||
publishTagToNpm() | ||
} | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters