Skip to content

Setup CI release #475

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Aug 12, 2021
Merged

Setup CI release #475

merged 5 commits into from
Aug 12, 2021

Conversation

armanbilge
Copy link
Member

Who could argue that sbt-gh-actions is preferable to this!! :P

Copy link
Contributor

@japgolly japgolly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Who could argue that sbt-gh-actions is preferable to this!! :P

Hehe well not me :D

build.sbt Outdated
@@ -17,6 +17,14 @@ val commonSettings = Seq(
scalacOptions ++= Seq("-deprecation", "-feature", "-Xfatal-warnings")
)

val noPublishSettings = Seq(
skip in publish := true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe in 1.5.5 this is all we need, all the rest is redundant stuff that I created years ago in the 0.13.x days, and now it seems to have spread around verbatim haha. Plus change to publish / skip

- uses: actions/[email protected]
with:
fetch-depth: 0
- uses: olafurpg/setup-scala@v10
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

13 is latest. I'll add dependabot for these later (or feel free to yourself if you want)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Never used dependabot. My chance to learn! This is what you install? https://github.com/apps/dependabot-preview

env:
SCALAJS_VERSION: "${{ matrix.scalajsversion == '0.6.x' && '0.6.28' || '' }}"
steps:
- uses: actions/[email protected]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just @v2, that way it will pick up compatible 2.x.x actions automatically.

@armanbilge armanbilge marked this pull request as ready for review August 12, 2021 02:28
@armanbilge armanbilge requested a review from japgolly August 12, 2021 02:28
@armanbilge
Copy link
Member Author

Btw do you want to publish snapshots?

Copy link
Contributor

@japgolly japgolly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was about to merge and then I thought I'd just do a quick comparison against boopickle and they've got this before the publish step:

      - uses: actions/checkout@v2
      - uses: olafurpg/setup-scala@v12
      - uses: olafurpg/setup-gpg@v3
      - uses: coursier/cache-action@v6

I'm not fussed about the caching but can you pls also confirm whether we need setup-gpg?

tags: ["v*"]
jobs:
publish:
runs-on: ubuntu-20.04
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ubuntu-latest probably better

@armanbilge
Copy link
Member Author

I'm not fussed about the caching but can you pls also confirm whether we need setup-gpg?

Oops, you are right we don't. I remember you advised me to check with boopickle, my bad. Let me do that now. I think I copied this directly from the sbt-ci-release repo ...

@armanbilge
Copy link
Member Author

armanbilge commented Aug 12, 2021

See sbt/sbt-ci-release#171 about setup-gpg

@armanbilge armanbilge requested a review from japgolly August 12, 2021 02:48
@japgolly japgolly merged commit fee4c06 into series/1.x Aug 12, 2021
@japgolly japgolly deleted the topic/setup-ci-release branch August 12, 2021 02:54
@japgolly
Copy link
Contributor

Done! Thanks and nice work!

@japgolly
Copy link
Contributor

@armanbilge The release-drafter stuff broke. It didn't run on this PR so we missed it

https://github.com/scala-js/scala-js-dom/actions/runs/1122419282

@armanbilge
Copy link
Member Author

Yeah I'm looking into it now. I copied it straight out of boopickle so not sure what's missing. Btw, we published our first snapshot! So seems that's working at least :)

@armanbilge
Copy link
Member Author

armanbilge commented Aug 12, 2021

@japgolly ok, I don't have a clue sorry :( it says we are missing the template property from the release-drafter config but it's definitely there ... I really did just copy this from boopickle. Any ideas?

@armanbilge
Copy link
Member Author

@japgolly found it release-drafter/release-drafter#398 (comment)

In short, the release-drafter.yml config has to be on the master branch. So it should fix itself when we next merge series/1.x into master.

@japgolly
Copy link
Contributor

@armanbilge np disabled on series/1.x in 014eedd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants