Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ on:
push:
branches:
- main
# pull_request:
# paths:
# - "api/**"
pull_request:
paths:
- "api/**"
workflow_dispatch:

permissions:
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI

on:
pull_request:
push:
branches:
- main
paths:
- "api/**"

permissions:
contents: read

jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: "20"

- run: npm ci

- name: Generate OpenAPI spec
run: npm run generate

- name: Validate OpenAPI spec
run: npm run validate
2 changes: 1 addition & 1 deletion api/registry.npmjs.com/oidc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ paths:
- registry.npmjs.org
summary: Exchange OIDC id_token for npm registry token
description: |
Exchanges a valid OIDC id_token (provided as a Bearer token) for a short-lived npm registry access token for the specified package.
Exchange a valid OIDC id_token (provided as a Bearer token) for a short-lived npm registry access token for the specified package.

**OIDC Token Requirements:**
- The Bearer token must be an OIDC id_token from a supported Identity Provider (IdP)
Expand Down