Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Improve Github Action Workflow

Đang mở
#29 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
48/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
github-actions, node.js
Lĩnh vực
build-system, ci-cd, devops

Hướng nghiên cứu

Mở .github/workflows/checks.yml và so sánh các mục chưa được đánh dấu với workflow hiện có trên branch develop. Xác minh mối quan hệ giữa các job test và build, cập nhật các mục còn lại về lệnh và cách đặt tên, thêm các chú thích header được yêu cầu, và xác nhận rằng cấu hình workflow hợp lệ.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

@danielfdsilva spent time in #24 improving the GitHub workflow.
To keep our git history clean and make reviews easier, we should extract the workflow improvements into their own PR, based on the develop branch.

GitHub Actions Workflow Updates (.github/workflows/checks.yml)

  • Add descriptive header comments explaining the workflow purpose
  • Update trigger conditions:
    • Remove push trigger on main branch
    • Update pull_request types to: opened, synchronize, reopened, ready_for_review
    • Add concurrency controls to cancel in-progress runs for the same ref
  • Update Node.js version strategy:
    • Remove hardcoded NODE environment variable
    • Use node-version-file: '.nvmrc' to read version from .nvmrc file
  • Update GitHub Actions to latest versions:
    • actions/checkout@v2 → actions/checkout@v4
    • actions/setup-node@v1 → actions/setup-node@v4
    • actions/cache@v2 → actions/cache@v4
    • Remove deprecated styfle/cancel-workflow-action (replaced by concurrency)
  • Simplify cache key:
    • Remove cache-name environment variable
    • Use ${{ runner.os }}-build-${{ hashFiles('**/package.json') }}
  • Update job commands:
    • Use explicit yarn run lint instead of yarn lint
    • Use explicit yarn run test instead of yarn test
    • Use explicit yarn run build instead of yarn build
    • Fix build job step name: "Test" → "Build"
  • Ensure build job depends on test job (not changed, but verify)

References

  • Original PR: #24
  • Target branch: develop

Notes

This is purely infrastructure/tooling changes with no functional code changes to the library itself.

Ngôn ngữ chính
TypeScript
Star
34
Fork
4
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của developmentseed/stac-react

Tất cả issue của developmentseed/stac-react

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.