Skip to content

Commit

Permalink
Merge pull request #765 from Picturepark/feature/PP9-20529-11-12-release
Browse files Browse the repository at this point in the history
Feature/pp9 20529 11 12 release
  • Loading branch information
neotek authored Aug 21, 2024
2 parents 8c7b52b + 3e98a6e commit 36132ca
Showing 1 changed file with 28 additions and 12 deletions.
40 changes: 28 additions & 12 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@ jobs:
runs-on: [ubuntu-latest]
strategy:
matrix:
node-version: [18.x]
node-version: [20.x]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/
registry-url: 'https://registry.npmjs.org'
always-auth: true
scope: '@picturepark'

- name: Build
run: |
Expand All @@ -32,12 +34,26 @@ jobs:
npm run lint
npm run build-libraries
- name: Publish npm packages
working-directory: ./src/
run: |
npm publish 'picturepark-sdk-v1-fetch' --access=public
npm publish 'picturepark-sdk-v1-pickers' --access=public
npm publish 'picturepark-sdk-v2-angular/dist/picturepark-sdk-v2-angular' --access=public
npm publish 'picturepark-sdk-v2-angular/dist/picturepark-sdk-v2-angular-oidc' --access=public
- name: Publish fetch packages
working-directory: ./src/picturepark-sdk-v1-fetch/
run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish pickers packages
working-directory: ./src/picturepark-sdk-v1-pickers/
run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish angular packages
working-directory: ./src/picturepark-sdk-v2-angular/dist/picturepark-sdk-v2-angular/
run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish angular oidc packages
working-directory: ./src/picturepark-sdk-v2-angular/dist/picturepark-sdk-v2-angular-oidc/
run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 36132ca

Please sign in to comment.