mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-06 21:42:49 +00:00
@@ -589,6 +589,17 @@ export function getRules(configuration: Configuration): Rules {
|
||||
'node_modules',
|
||||
],
|
||||
},
|
||||
build: {
|
||||
stage: 'build',
|
||||
script: [
|
||||
'npm run build',
|
||||
],
|
||||
artifacts: {
|
||||
paths: [
|
||||
'lib',
|
||||
],
|
||||
},
|
||||
},
|
||||
audit: {
|
||||
allow_failure: true,
|
||||
except: [
|
||||
@@ -608,6 +619,27 @@ export function getRules(configuration: Configuration): Rules {
|
||||
],
|
||||
stage: 'test',
|
||||
},
|
||||
package: {
|
||||
dependencies: [
|
||||
'build',
|
||||
],
|
||||
tags: [
|
||||
'secrecy',
|
||||
],
|
||||
stage: 'deploy',
|
||||
script: [
|
||||
'echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > /root/.npmrc',
|
||||
'npm publish',
|
||||
],
|
||||
only: [
|
||||
'/^v[0-9]+\.[0-9]+\.[0-9]+$/',
|
||||
],
|
||||
artifacts: {
|
||||
paths: [
|
||||
'public',
|
||||
],
|
||||
},
|
||||
},
|
||||
pages: {
|
||||
artifacts: {
|
||||
'paths': [
|
||||
|
||||
Reference in New Issue
Block a user