Skip to content

Make GITHUB_TOKEN env var optional #525

@bluwy

Description

@bluwy

I'm currently working on this locally but thought to bring up as an issue first

Currently, the docs mention setting:

env:
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

when using the action. However, github actions can by default retrieve this using inputs, e.g. actions/checkout and actions/setup-node.

It would be nice if changesets/action can do the same so users don't have to specify the env var manually.


Note: Since @changesets/get-github-info still relies on the GITHUB_TOKEN env var, the action could internally set it from the input if it's unset.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions