Skip to content

Refactor to separate itty-router from openapi logic #182

Refactor to separate itty-router from openapi logic

Refactor to separate itty-router from openapi logic #182

name: Create Pull Request Prerelease
on: pull_request
jobs:
build:
if: ${{ github.repository_owner == 'cloudflare' }}
name: Build & Publish a Prerelease to the Adhoc Registry
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20.x
cache: "npm"
- run: npm install --frozen-lockfile
- run: npm run build
- name: Create package
run: npm pack
- name: Upload packaged itty-router-openapi artifact
uses: actions/upload-artifact@v4
with:
name: npm-package-itty-router-openapi-${{ github.event.number }} # encode the PR number into the artifact name
path: cloudflare-itty-router-openapi-*.tgz