-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: implements release-please (#246)
- Loading branch information
Showing
17 changed files
with
5,553 additions
and
32 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,20 @@ | ||
--- | ||
name: Conventional PR Title | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- reopened | ||
- edited | ||
- synchronize | ||
|
||
jobs: | ||
conventional-pr-title: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
statuses: write | ||
steps: | ||
- uses: aslafy-z/conventional-pr-title-action@v3 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
|
@@ -10,12 +10,7 @@ on: | |
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Get the version | ||
id: get_version | ||
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/} | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
|
@@ -24,7 +19,6 @@ jobs: | |
- name: Build source | ||
uses: udondan/[email protected] | ||
with: | ||
VERSION: ${{ steps.get_version.outputs.VERSION }} | ||
BUILD_SOURCE: true | ||
|
||
- name: Build packages | ||
|
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,20 @@ | ||
--- | ||
name: release-please | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
release-please: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: google-github-actions/release-please-action@v4 | ||
with: | ||
token: ${{ secrets.OVERRIDE_TOKEN }} |
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
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
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
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,3 @@ | ||
{ | ||
".": "3.3.3" | ||
} |
Empty file.
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 |
---|---|---|
@@ -1,32 +1,29 @@ | ||
SHELL := /bin/bash | ||
VERSION := $(shell cat VERSION) | ||
SHELL := /bin/bash -euo pipefail | ||
|
||
NO_COLOR=\x1b[0m | ||
TARGET_COLOR=\x1b[96m | ||
|
||
build: | ||
@echo -e "$(TARGET_COLOR)Running build$(NO_COLOR)" | ||
@npm run build | ||
|
||
package: build | ||
@echo -e "$(TARGET_COLOR)Running package$(NO_COLOR)" | ||
@npm run package | ||
|
||
clean: | ||
@echo -e "$(TARGET_COLOR)Running clean$(NO_COLOR)" | ||
@rm -rf node_modules package-lock.json | ||
|
||
install: clean | ||
@npm i | ||
install: | ||
@echo -e "$(TARGET_COLOR)Running install$(NO_COLOR)" | ||
@npm clean-install --prefer-offline --cache .npm | ||
@npm list | ||
|
||
test: build | ||
npm run test | ||
@echo -e "$(TARGET_COLOR)Running test$(NO_COLOR)" | ||
@npm run test | ||
|
||
test-update: | ||
npm run test -- -u | ||
|
||
tag: | ||
@git tag -a "v$(VERSION)" -m 'Creates tag "v$(VERSION)"' | ||
@git push --tags | ||
|
||
untag: | ||
@git push --delete origin "v$(VERSION)" | ||
@git tag --delete "v$(VERSION)" | ||
|
||
release: tag | ||
|
||
re-release: untag tag | ||
@echo -e "$(TARGET_COLOR)Running test-update$(NO_COLOR)" | ||
@npm run test -- -u |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.