GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - changesets/action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
BranchesTags
Open more actions menu

Latest commit

 

History

273 Commits
273 Commits

Folders and files

NameName
Last commit message
Last commit date
.changeset
.changeset
 
 
.github
.github
 
 
.vscode
.vscode
 
 
pack
pack
 
 
pr-comment
pr-comment
 
 
pr-status
pr-status
 
 
publish
publish
 
 
scripts
scripts
 
 
select-mode
select-mode
 
 
src
src
 
 
version
version
 
 
.gitignore
.gitignore
 
 
.node-version
.node-version
 
 
.oxfmtrc.json
.oxfmtrc.json
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
action.yml
action.yml
 
 
package.json
package.json
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
pnpm-workspace.yaml
pnpm-workspace.yaml
 
 
rolldown.config.js
rolldown.config.js
 
 
tsconfig.json
tsconfig.json
 
 

Repository files navigation

Changesets GitHub Action

Important

This is the development branch for changesets/action v2 compatible with Changesets v3. For the v1 code compatible with Changesets v2, check out the maintenance/v1 branch.

This repo contains a collection of GitHub Actions for Changesets. Check out the Automating Changesets guide to learn how to use these actions to automate your workflow.

  • changesets/action: (This README. See below for details.)
  • changesets/action/select-mode: Select the mode to run a Changesets workflow.
  • changesets/action/version: Version packages and create or update a pull request with the changes.
  • changesets/action/pack: Pack publishable packages into tarballs.
  • changesets/action/publish: Publish packages to npm.
  • changesets/action/pr-status: Generate changeset status in PRs.
  • changesets/action/pr-comment: Create or update comments on PRs.

changesets/action

This action handles versioning and publishing of packages. It's the equivalent of setting up the changesets/action/select-mode, changesets/action/version, and changesets/action/publish actions in a workflow, but with the required permissions combined.

If using trusted publishing, it's recommended to set up the individual sub-actions instead to tighten publish permissions.

Requirements

  • Needs repo checked out and @changesets/cli installed
  • Job permissions:
    • contents: write: to commit version changes
    • pull-requests: write: to create pull request
    • id-token: write: if using trusted publishing
  • Workflow triggers: any

Note

In your repository settings, in Actions > General, also ensure the Allow GitHub Actions to create and approve pull requests option is enabled

Usage

Tip

Check out the docs to learn how to set up the version and publish workflow.

Important

To use a custom GitHub token, pass it explicitly through the github-token input:

with:
  github-token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}

Setting the GITHUB_TOKEN environment variable does not configure the action. This applies whether release changes are pushed using the GitHub API or the Git CLI.

API

Inputs Description
github-token The GitHub token to use for authentication. Defaults to the GitHub-provided token. To use a custom token, pass it explicitly to this input.
publish-script The command to use to build and publish packages
version-script The command to update version, edit CHANGELOG, read and delete changesets. Default to changeset version if not provided
commit-message The commit message. Default to Version Packages
pr-title The pull request title. Default to Version Packages
pr-draft Controls draft PR behavior. Use 'create' to create new version PRs as draft, or 'always' to also convert existing version PRs back to draft when updating them.
pr-base-branch Sets the base branch of the PR. Defaults to github.ref_name.
create-github-releases Whether to create Github releases after publish
push-git-tags Whether to create git tags after publish. If create-github-releases is set to true, this option will also always be true.
push-with-git-cli Whether to use the Git CLI instead of the GitHub API to push release commits and tags. Defaults to false. When using the GitHub API, commits and tags are signed using GitHub's GPG key and attributed to the user or app that owns the github-token.
cwd The working directory to execute Changesets in. Defaults to the root of the repository.
Outputs Description
published A "true" or "false" string value to indicate whether a publishing is happened or not
published-packages A JSON array to present the published packages. The format is [{"name": "@xx/xx", "version": "1.2.0"}, {"name": "@xx/xy", "version": "0.8.9"}]
has-changesets A "true" or "false" string value about whether there were changesets. Useful if you want to create your own publishing functionality.
pr-number The pull request number that was created or updated

About

changesets.dev

Resources

Readme
MIT license

Code of conduct

Code of conduct

Security policy

Security policy
Activity
Custom properties

Stars

1.1k stars

Watchers

24 watching

Forks

415 forks
Report repository

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.