-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
48 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# .github/release.yml | ||
|
||
changelog: | ||
exclude: | ||
labels: | ||
- ignore-for-release | ||
categories: | ||
- title: Breaking Changes 🛠 | ||
labels: | ||
- breaking-change | ||
- title: Exciting New Features 🎉 | ||
labels: | ||
- enhancement | ||
- title: Bug Fixes 🐛 | ||
labels: | ||
- bug | ||
- title: Chores | ||
labels: | ||
- dependencies | ||
- title: Other Changes | ||
labels: | ||
- "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,9 @@ on: | |
description: 'Release version' | ||
required: true | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build-and-release: | ||
runs-on: ubuntu-latest | ||
|
@@ -22,7 +25,7 @@ jobs: | |
|
||
- name: Install dependencies | ||
run: | | ||
npm install | ||
npm ci | ||
- name: Build package | ||
run: | | ||
|
@@ -32,22 +35,40 @@ jobs: | |
uses: EndBug/add-and-commit@a3adef035a1381dcf888c90b847240e2ddb9e008 | ||
with: | ||
author_name: Link- | ||
author_email: [email protected] | ||
author_email: [email protected] | ||
message: 'Update build' | ||
add: 'bin/starred_search' | ||
|
||
- name: Update version | ||
run: | | ||
npm version ${{ github.event.inputs.name }} | ||
npm version ${{ github.event.inputs.version }} | ||
- name: Push new version and tag | ||
- name: Push package.json | ||
uses: EndBug/add-and-commit@a3adef035a1381dcf888c90b847240e2ddb9e008 | ||
with: | ||
author_name: Link- | ||
author_email: [email protected] | ||
author_email: [email protected] | ||
message: 'Update version' | ||
add: 'package.json' | ||
|
||
- name: Tag version | ||
run: | | ||
git tag ${{ github.event.inputs.version }} | ||
- name: Push tag | ||
uses: EndBug/add-and-commit@a3adef035a1381dcf888c90b847240e2ddb9e008 | ||
with: | ||
author_name: Link- | ||
author_email: [email protected] | ||
|
||
- uses: actions/create-release@master | ||
name: Create ${{ github.event.inputs.version }} Release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: "${{ github.event.inputs.version }}" | ||
release_name: "${{ github.event.inputs.version }}" | ||
|
||
- name: Release | ||
uses: JS-DevTools/npm-publish@0f451a94170d1699fd50710966d48fb26194d939 | ||
with: | ||
|