fix: update git clone URL and add GITHUB_TOKEN environment variable #158
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
paths: | |
- '**.dart' | |
- '**.yaml' | |
- '**.yml' | |
branches: | |
- main | |
tags-ignore: | |
- '**' | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: dart-lang/setup-dart@v1 | |
- name: Dart SDK | |
run: dart --version | |
- uses: actions/checkout@v5 | |
- name: Install dependencies | |
run: dart pub get | |
- name: Code Formatting | |
run: dart format --set-exit-if-changed . | |
- name: Build & Install Locally | |
run: dart pub global activate --source path . | |
- name: Check Publish Warnings | |
run: dart pub publish --dry-run |