Skip to content

chore: bump react-dom from 19.2.3 to 19.2.4 in /site (#416) #255

chore: bump react-dom from 19.2.3 to 19.2.4 in /site (#416)

chore: bump react-dom from 19.2.3 to 19.2.4 in /site (#416) #255

name: Dart Pub Publish Workflow

Check failure on line 1 in .github/workflows/dart_pub_publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/dart_pub_publish.yml

Invalid workflow file

(Line: 50, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.pub_credentials != ''
on:
workflow_call:
inputs:
dart_sdk:
required: false
type: string
default: "stable"
working_directory:
required: false
type: string
default: "."
runs_on:
required: false
type: string
default: "ubuntu-latest"
timeout_minutes:
required: false
type: number
default: 5
# Deprecated, will be used if passed in but using the "Setup Dart" action is recommended
secrets:
pub_credentials:
required: true
jobs:
publish:
defaults:
run:
working-directory: ${{inputs.working_directory}}
runs-on: ${{inputs.runs_on}}
timeout-minutes: ${{inputs.timeout_minutes}}
steps:
- name: 📚 Git Checkout
uses: actions/checkout@v6
- name: 🎯 Setup Dart
uses: dart-lang/setup-dart@v1
with:
sdk: ${{inputs.dart_sdk}}
- name: 📦 Install Dependencies
run: dart pub get
- name: 🔐 Setup Pub Credentials
if: ${{ secrets.pub_credentials != '' }}
run: |
mkdir -p $XDG_CONFIG_HOME/dart
echo '${{secrets.pub_credentials}}' > "$XDG_CONFIG_HOME/dart/pub-credentials.json"
- name: 🌵 Dry Run
run: dart pub publish --dry-run
- name: 📢 Publish
run: dart pub publish -f