Skip to content

Commit

Permalink
feat(redocly): check bundle and run lint
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuVeber committed Jun 3, 2024
1 parent a474a10 commit 5645885
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/redocly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Redocly

on:
workflow_call:
secrets:
READONLY_NPM_TOKEN:
description: Needed to install private @hedia npm packages
required: true

jobs:
redocly:
runs-on: ubuntu-latest
timeout-minutes: 1

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Setup Node.js Environment
uses: actions/setup-node@v4
with:
always-auth: true
cache: "npm"
node-version-file: package.json
registry-url: https://registry.npmjs.org
scope: "@hedia"

- name: Install Dependencies
run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.READONLY_NPM_TOKEN }}

- name: Run Redocly Lint
run: npm run redocly:lint --if-present

- name: Is the bundle up to date?
run: "npm run redocly:bundle && [[ -n $(git status --porcelain) ]] && exit 1 || :"

0 comments on commit 5645885

Please sign in to comment.