Skip to content

Commit

Permalink
feat: Add nephos page package
Browse files Browse the repository at this point in the history
  • Loading branch information
Elvys Marcos committed Jun 4, 2024
1 parent dce9101 commit 16bcc53
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 1 deletion.
71 changes: 71 additions & 0 deletions projects/iatec/nephos-pages/azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml

trigger:
branches:
exclude:
- '*'
tags:
include:
- '@iatec/nephos-pages@*'

pool:
name: IATec-Builds-Agents-Linux

variables:
- group: nuget-credentials

steps:
- task: NodeTool@0
displayName: 'Update Node.js'
inputs:
versionSpec: '20.x'

- task: CmdLine@2
displayName: 'Rename .npmrc.pipeline To .npmrc'
inputs:
script: 'mv .npmrc.pipeline .npmrc'

- task: replacetokens@6
displayName: 'Replace variables in .npmrc'
inputs:
targetFiles: '**/.npmrc'
encoding: 'auto'
writeBOM: true
actionOnMissing: 'warn'
keepToken: false
tokenPrefix: '#{'
tokenSuffix: '}#'

- task: Npm@1
displayName: 'Install'
inputs:
command: 'install'
workingDir: '$(Build.SourcesDirectory)'

- task: Npm@1
displayName: 'Build - @iatec/nephos-pages'
inputs:
command: 'custom'
customCommand: 'run ng build @iatec/nephos-pages'
workingDir: '$(Build.SourcesDirectory)'

- task: npmAuthenticate@0
displayName: Authenticate
inputs:
workingFile: .npmrc

- task: Npm@1
displayName: Publish
inputs:
command: publish
publishRegistry: useFeed
publishFeed: IATec.Community
workingDir: '$(Build.SourcesDirectory)/dist/iatec/nephos-pages'

- task: CmdLine@2
displayName: 'Remove .npmrc'
inputs:
script: 'rm -r .npmrc'
2 changes: 1 addition & 1 deletion projects/iatec/nephos-pages/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@iatec/nephos-pages",
"version": "0.0.1",
"version": "3.0.0",
"peerDependencies": {
"@angular/common": ">=17.0.0",
"@angular/core": ">=17.0.0"
Expand Down

0 comments on commit 16bcc53

Please sign in to comment.