Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/108yen/changeset-release
This GitHub Action is an extract of the GitHub release creation process from the changesets GitHub Action.
https://github.com/108yen/changeset-release
changesets github-actions release-automation
Last synced: about 17 hours ago
JSON representation
This GitHub Action is an extract of the GitHub release creation process from the changesets GitHub Action.
- Host: GitHub
- URL: https://github.com/108yen/changeset-release
- Owner: 108yen
- License: mit
- Created: 2024-10-02T12:27:44.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-10-24T05:30:54.000Z (24 days ago)
- Last Synced: 2024-10-24T23:35:07.880Z (24 days ago)
- Topics: changesets, github-actions, release-automation
- Language: TypeScript
- Homepage:
- Size: 1.09 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# 108yen/changeset-release
This action extracts the process of creating a release to github from [`Changesets Release Action`](https://github.com/changesets/action).
This allows for release whenever you want.## Usage
### Inputs
- format: Release tag format. Choose one of these. (Default: `prefix`.)
- full: `[email protected]`
- major: `v1`
- prefix `v1.0.0`
- simple `1.0.0`
- target: Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. (Default: the repository's default branch.)### Outputs
- tag: Release tag. (Example: `v1.0.0`)
### Example workflow
This is an example of a release workflow that works when a PR issued by [`Changesets Release Action`](https://github.com/changesets/action) is merged.
The [`Changesets Release Action`](https://github.com/changesets/action) must be configured to work in a separate workflow.```yml
name: Releaseon:
pull_request_target:
types:
- closed
branches:
- mainconcurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: releasepermissions:
contents: writeif: github.event.pull_request.merged == true && startsWith(github.head_ref, 'changeset-release/main')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4- name: Release
run: 108yen/changeset-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```### Example of using output
```yml
name: Releaseon:
pull_request_target:
types:
- closed
branches:
- mainconcurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: releasepermissions:
contents: writeif: github.event.pull_request.merged == true && startsWith(github.head_ref, 'changeset-release/main')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4- name: Release
id: release
run: 108yen/changeset-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}- name: Display Tag
run: echo '${{ steps.release.outputs.tag }}'
```