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
39 changes: 39 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Nightly

on:
schedule:
- cron: "10 0 * * *"
workflow_dispatch:

permissions:
contents: read
actions: write

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 100
- uses: actions/setup-node@v7
with:
node-version: 'lts/*'

- run: npm run nightly-check -- --platform web --force false
id: web
- run: npm run nightly-check -- --platform dotnet --force false
id: dotnet
- run: npm run nightly-check -- --platform kotlin --force false
id: kotlin

# Runs dispatched via GITHUB_TOKEN are an exception to the no-recursive-runs rule, so no PAT is needed.
- if: steps.web.outputs.has_changes == 'true' || steps.dotnet.outputs.has_changes == 'true' || steps.kotlin.outputs.has_changes == 'true'
run: >
gh workflow run publish.yml
--ref ${{ github.ref_name }}
-f web=${{ steps.web.outputs.has_changes }}
-f dotnet=${{ steps.dotnet.outputs.has_changes }}
-f kotlin=${{ steps.kotlin.outputs.has_changes }}
env:
GH_TOKEN: ${{ github.token }}
39 changes: 28 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,57 @@
name: Publish

on:
schedule:
- cron: "10 0 * * *"
workflow_dispatch:
inputs:
web:
type: boolean
description: Publish web packages
default: true
dotnet:
type: boolean
description: Publish .NET packages
default: true
kotlin:
type: boolean
description: Publish Kotlin packages
default: true
force:
type: boolean
description: Publish all web packages, not only the ones changed in the last 26 hours
default: false
dry_run:
type: boolean
description: Build and verify all packages without publishing them
default: false

jobs:
web:
if: inputs.web
uses: ./.github/workflows/~publish_web.yml
permissions:
contents: read
id-token: write
secrets: inherit
with:
with:
version: alpha ${{github.run_number}}
npm_tag: alpha
force: ${{ inputs.dry_run == true }}
dry_run: ${{ inputs.dry_run == true }}
force: ${{ inputs.force || inputs.dry_run }}
dry_run: ${{ inputs.dry_run }}

dotnet:
if: inputs.dotnet
uses: ./.github/workflows/~publish_dotnet.yml
secrets: inherit
with:
with:
version: alpha ${{github.run_number}}
force: ${{ inputs.dry_run == true }}
dry_run: ${{ inputs.dry_run == true }}
force: ${{ inputs.force || inputs.dry_run }}
dry_run: ${{ inputs.dry_run }}

kotlin:
if: inputs.kotlin
uses: ./.github/workflows/~publish_kotlin.yml
secrets: inherit
with:
with:
version: alpha ${{github.run_number}}
force: ${{ inputs.dry_run == true }}
dry_run: ${{ inputs.dry_run == true }}
force: ${{ inputs.force || inputs.dry_run }}
dry_run: ${{ inputs.dry_run }}
17 changes: 0 additions & 17 deletions .github/workflows/~publish_dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,7 @@ on:
default: false

jobs:
check:
runs-on: ubuntu-latest
outputs:
has_changes: ${{ steps.check.outputs.has_changes }}
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 100
- uses: actions/setup-node@v7
with:
node-version: 'lts/*'
cache: 'npm'
- run: npm run nightly-check -- --platform dotnet --force ${{ inputs.force }}
id: check

build:
needs: check
if: needs.check.outputs.has_changes == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
Expand Down
17 changes: 0 additions & 17 deletions .github/workflows/~publish_kotlin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,7 @@ on:
default: false

jobs:
check:
runs-on: ubuntu-latest
outputs:
has_changes: ${{ steps.check.outputs.has_changes }}
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 100
- uses: actions/setup-node@v7
with:
node-version: 'lts/*'
cache: 'npm'
- run: npm run nightly-check -- --platform kotlin --force ${{ inputs.force }}
id: check

build:
needs: check
if: needs.check.outputs.has_changes == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
Expand Down
17 changes: 0 additions & 17 deletions .github/workflows/~publish_web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,7 @@ on:


jobs:
check:
runs-on: ubuntu-latest
outputs:
has_changes: ${{ steps.check.outputs.has_changes }}
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 100
- uses: actions/setup-node@v7
with:
node-version: 'lts/*'
cache: 'npm'
- run: npm run nightly-check -- --platform web --force ${{ inputs.force }}
id: check

build:
needs: check
if: needs.check.outputs.has_changes == 'true'
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down
Loading