Skip to content

Add public GET /api/domain/:name endpoint for nginx domain mapping #54

Add public GET /api/domain/:name endpoint for nginx domain mapping

Add public GET /api/domain/:name endpoint for nginx domain mapping #54

Workflow file for this run

name: Publish @openworkers/api-types to npm
on:
push:
tags:
- 'v*'
permissions:
id-token: write # Required for OIDC
contents: read
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Generate types package
run: bun run generate-types
env:
GIT_COMMIT: ${{ github.sha }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org/'
# Ensure npm 11.5.1 or later for trusted publishing
# https://github.com/orgs/community/discussions/173102#discussioncomment-14367428
- name: Update npm to latest
run: npm install -g npm@latest
- name: Publish to npm
run: cd dist && npm publish