create-t3-app icon indicating copy to clipboard operation
create-t3-app copied to clipboard

feat: add publish workflow when creating releases

Open omdxp opened this issue 2 years ago • 7 comments

Hi, I really liked your work here and I wanted to contribute to your project by adding a workflow for a GitHub Action that publish this package automatically to npm registry when creating releases in your repo. You just need to add NODE_AUTH_TOKEN to your repo secrets and you should test it before using it if any thing occurs.

omdxp avatar Jun 28 '22 09:06 omdxp

Thank you! Would have appreciated if we could have discussed this in an issue first.

We're not making releases on GitHub yet, but this PR definitely made me want. I will not merge this for now, but we're gonna implement releasing on GitHub automatically soon and after that I will merge this.

nexxeln avatar Jun 28 '22 11:06 nexxeln

@nexxeln cool, glad to help!

omdxp avatar Jun 28 '22 11:06 omdxp

@jammaligad done!

omdxp avatar Jul 07 '22 16:07 omdxp

@JacobMGEvans it's done

omdxp avatar Jul 10 '22 07:07 omdxp

I think we should look into merging this @nexxeln @JacobMGEvans

Is there a way to make this work with multiple tags? We have latest, next and beta.

juliusmarminge avatar Jul 20 '22 06:07 juliusmarminge

It can be applied using the input from the manual action dispatch:

on:
  workflow_dispatch:
    inputs:
      release-type:
        description: 'Release type (one of): patch, minor, major, prepatch, preminor, premajor, prerelease'
        required: true

omdxp avatar Jul 20 '22 08:07 omdxp

I think we should look into merging this @nexxeln @JacobMGEvans

Is there a way to make this work with multiple tags? We have latest, next and beta.

Yes there is. You can see release Workflow here https://github.com/cloudflare/wrangler2/blob/main/.github/workflows/release.yml

You can see beta prerelease here https://github.com/cloudflare/wrangler2/blob/main/.github/workflows/prereleases.yml

JacobMGEvans avatar Jul 21 '22 16:07 JacobMGEvans

Superseded by #308

juliusmarminge avatar Aug 15 '22 13:08 juliusmarminge