Merge pull request #791 from Picturepark/feature/PP9-21398-deployment… #123
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
name: Angular SDK V2 - Github Package publish | |
on: | |
push: | |
branches: | |
- master | |
- '[0-9]+.[0-9]+.x' | |
jobs: | |
picturepark-sdk-v2-angular: | |
runs-on: [ubuntu-latest] | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Publish Angular SDK V2 - Node ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
registry-url: https://npm.pkg.github.com/ | |
- name: Increase version picturepark-sdk-v2-angular | |
working-directory: ./src/picturepark-sdk-v2-angular | |
run: npm version prerelease --preid=pre-${GITHUB_SHA::7} | |
- name: Increase version projects/picturepark-sdk-v2-angular | |
working-directory: ./src/picturepark-sdk-v2-angular/projects/picturepark-sdk-v2-angular | |
run: npm version prerelease --preid=pre-${GITHUB_SHA::7} | |
- name: Increase version projects/picturepark-sdk-v2-angular-oidc | |
working-directory: ./src/picturepark-sdk-v2-angular/projects/picturepark-sdk-v2-angular-oidc | |
run: npm version prerelease --preid=pre-${GITHUB_SHA::7} | |
- name: Increase version projects/picturepark-sdk-v2-angular-ui | |
working-directory: ./src/picturepark-sdk-v2-angular/projects/picturepark-sdk-v2-angular-ui | |
run: npm version prerelease --preid=pre-${GITHUB_SHA::7} | |
- name: Build libraries | |
working-directory: ./src/picturepark-sdk-v2-angular | |
run: | | |
npm run init | |
npm run build-libraries | |
- name: Publish package - picturepark-sdk-v2-angular | |
working-directory: ./src/picturepark-sdk-v2-angular/dist/picturepark-sdk-v2-angular | |
run: | | |
cp package.json package.json.tmp | |
jq '.repository.url = "git://github.com/Picturepark/Picturepark.SDK.TypeScript.git"' package.json.tmp >package.json | |
rm package.json.tmp | |
cat package.json | |
npm publish --tag pre | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Publish package - picturepark-sdk-v2-angular-oidc | |
working-directory: ./src/picturepark-sdk-v2-angular/dist/picturepark-sdk-v2-angular-oidc | |
run: | | |
cp package.json package.json.tmp | |
jq '.repository.url = "git://github.com/Picturepark/Picturepark.SDK.TypeScript.git"' package.json.tmp >package.json | |
rm package.json.tmp | |
cat package.json | |
npm publish --tag pre | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Publish package - picturepark-sdk-v2-angular-ui | |
working-directory: ./src/picturepark-sdk-v2-angular/dist/picturepark-sdk-v2-angular-ui | |
run: | | |
cp package.json package.json.tmp | |
jq '.repository.url = "git://github.com/Picturepark/Picturepark.SDK.TypeScript.git"' package.json.tmp >package.json | |
rm package.json.tmp | |
cat package.json | |
npm publish --tag pre | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |