Skip to content

Update OpenAPI to unstable #1036

Update OpenAPI to unstable

Update OpenAPI to unstable #1036

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@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
with:
ref: openapi-unstable
- name: Set up Node.js
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version: 20
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 }}