2024-03-12 18:01:12 +02:00
|
|
|
name: Update Immich SDK
|
|
|
|
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [published]
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
packages: write
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
publish:
|
|
|
|
name: Publish `@immich/sdk`
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: ./open-api/typescript-sdk
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
# Setup .npmrc file to publish to npm
|
|
|
|
- uses: actions/setup-node@v4
|
|
|
|
with:
|
2024-06-25 15:01:15 +02:00
|
|
|
node-version-file: './open-api/typescript-sdk/.nvmrc'
|
2024-03-12 18:01:12 +02:00
|
|
|
registry-url: 'https://registry.npmjs.org'
|
|
|
|
- name: Install deps
|
|
|
|
run: npm ci
|
|
|
|
- name: Build
|
|
|
|
run: npm run build
|
|
|
|
- name: Publish
|
|
|
|
run: npm publish
|
|
|
|
env:
|
|
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|