Skip to content

Replace Jenkins CI/CD with GitHub Actions CI/CD + Modernizations - #94

Merged
mblomdahl merged 8 commits into
smithmicro:masterfrom
mblomdahl:master
Oct 23, 2022
Merged

mblomdahl merged 8 commits into
smithmicro:masterfrom
mblomdahl:master

Conversation

@mblomdahl

Copy link
Copy Markdown
Contributor

This PR adds a series of modernizations to the Mapbox GL Circle project, after 5 years unmaintained.

On a high level:

  1. Jenkins integration replaced by GitHub Actions for CI/CD ♻️
  2. GitHub Code Owners, Issue Templates and Pull Request Templates 📝
  3. New README badges, yey! 😮🏆

Item number 1 closes #93 (inspired by a recent review of PR #86), item number 2 is just copy-paste of some recent work on my GitHub Template web-template-react, and item number 3 is just from playing around with new features. 🙃

Ping @gleite-smsi & @gabrielcampos & @dsperling & @carlba & @akebrissman FYI!

From [GitHub Packages](https://docs.github.com/en/packages/quickstart), initial iteration towards smithmicro#93. Additionally:
- Up-to-date `.github/` assets for repo
  - `.github/PULL_REQUEST_TEMPLATE` stolen from https://github.com/cortinico/kotlin-android-template/blob/main/.github/PULL_REQUEST_TEMPLATE
  - `.github/ISSUE_TEMPLATE/feature_request.md` stolen from https://github.com/cortinico/kotlin-android-template/blob/main/.github/ISSUE_TEMPLATE/feature_request.md
  - `.github/ISSUE_TEMPLATE/bug_report.md` stolen from https://github.com/cortinico/kotlin-android-template/blob/main/.github/ISSUE_TEMPLATE/bug_report.md
  - `.github/CODEOWNERS` file with repo creator
- Remove `Jenkinsfile` and `.travis.yml` CI/CD configs
Additionally:
- Auto-commit pre-release `package.json` updates in "Publish Pre-Release" workflow
- Comment-out time-consuming install/build/lint steps for faster iterations
- Add `contents:write` permission for `publish-prerelease` GHA
- Add `npm run docs` to GitHub Actions CI/CD
- Try `Co-authored-by: <actor>` for GitHub Actions commit, https://docs.github.com/en/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/creating-a-commit-with-multiple-authors#creating-co-authored-commits-on-the-command-line
- Fetch all tags and history on release
- Moar badge 🏷️ and prettier names 📝
- `github.com/mblomdahl` fork -> `github.com/smithmicro` upstream
- `issue-93-gh-actions` feature branch -> default branch `master`
- Only run "Publish Release" and "Publish Pre-Release" workflows on main repo
@mblomdahl mblomdahl self-assigned this Oct 22, 2022
- Use `persist-credentials: false`, "... otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token" (from https://github.com/ad-m/github-push-action#readme)
- Always fetch latest `default` branch before publishing pre-release
- Add debug step for event properties
- Only publish pre-release on main repo, pull request builds should not trigger publishing
@mblomdahl
mblomdahl merged commit 8091b9c into smithmicro:master Oct 23, 2022
mblomdahl added a commit to mblomdahl/mapbox-gl-circle that referenced this pull request Oct 23, 2022
After merging smithmicro#94, we find that GitHub Packages \[GHP\], does not accept publishing of un-scoped packages. Instead of giving up on GHP entirely, let's publish this under two different names:
1. On NPM, as always, it's the `mapbox-gl-circle` package
2. On GHP, it's the same code as on NPM but published as the "`@smithmicro/mapbox-gl-circle`" package
mblomdahl added a commit to mblomdahl/mapbox-gl-circle that referenced this pull request Oct 23, 2022
After merging smithmicro#94, we find that GitHub Packages \[GHP\], does not accept publishing of un-scoped packages. Instead of giving up on GHP entirely, let's publish this under two different names:
1. On NPM, as always, it's the `mapbox-gl-circle` package
2. On GHP, it's the same code as on NPM but published as the "`@smithmicro/mapbox-gl-circle`" package
mblomdahl added a commit that referenced this pull request Oct 23, 2022
After merging #94, we find that GitHub Packages \[GHP\], does not accept publishing of un-scoped packages. Instead of giving up on GHP entirely, let's publish this under two different names:
1. On NPM, as always, it's the `mapbox-gl-circle` package
2. On GHP, it's the same code as on NPM but published as the "`@smithmicro/mapbox-gl-circle`" package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace Jenkins CI/CD with GitHub Actions CI/CD

1 participant