Skip to content

Update OpenAPI to unstable #705

Update OpenAPI to unstable

Update OpenAPI to unstable #705

name: SDK Unstable Publish
on:
workflow_dispatch:
push:
branches:
- openapi-unstable
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
if: ${{ github.repository == 'jellyfin/jellyfin-sdk-typescript' }}
steps:
- name: Check out Git repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
ref: openapi-unstable
- name: Set up Node.js
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 16
check-latest: true
cache: npm
registry-url: https://registry.npmjs.org
- name: Update package version
run: |
VERSION="0.0.0-unstable.$(date +%Y%m%d%H%M)+commit.$(git rev-parse HEAD)" && \
PACKAGE="$(jq --arg v "$VERSION" '.version = $v' package.json)" && \
echo -E "${PACKAGE}" > package.json
- name: Install Node.js dependencies
run: npm ci --no-audit
- name: Publish the SDK to npm
run: npm publish --tag unstable --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}