-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from h-sugawara/release/v1.1.0
Release/v1.1.0
- Loading branch information
Showing
20 changed files
with
407 additions
and
287 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
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 |
---|---|---|
|
@@ -21,6 +21,7 @@ jobs: | |
new_release_name: ${{ steps.new_release.outputs.name }} | ||
new_release_body: ${{ steps.new_release.outputs.body }} | ||
new_milestone_title: ${{ steps.new_milestone.outputs.title }} | ||
new_milestone_description: ${{ steps.new_milestone.outputs.description }} | ||
steps: | ||
- name: Check pull request merged | ||
id: merged_pr | ||
|
@@ -79,50 +80,29 @@ jobs: | |
if: steps.merged_pr.outputs.status == 'yes' | ||
id: new_milestone | ||
run: | | ||
echo "title=$(echo "${{ steps.new_release.outputs.name }}" | awk -F . '{print $1 "." $2+1 "." "0"}')" >> $GITHUB_OUTPUT | ||
next_release_version=$(echo "${{ steps.new_release.outputs.name }}" | awk -F . '{print $1 "." $2+1 "." "0"}') | ||
echo "title=${next_release_version}" >> $GITHUB_OUTPUT | ||
lf='\n' | ||
description="## $(echo ${next_release_version} | sed -E 's/^v(.+)/\1/g') (202X/XX/XX)${lf}" | ||
description+="${lf}### New features${lf}" | ||
description+="${lf}### Enhancements${lf}" | ||
description+="${lf}### Bug fixes${lf}" | ||
echo "description=${description}" >> $GITHUB_OUTPUT | ||
- name: Notify preparation | ||
run: | | ||
echo "Pull request merged status: ${{ steps.merged_pr.outputs.status }}" | ||
echo "New release name: ${{ steps.new_release.outputs.name }}" | ||
echo "New release body: ${{ steps.new_release.outputs.body }}" | ||
echo "New milestone title: ${{ steps.new_milestone.outputs.title }}" | ||
code_coverage: | ||
needs: | ||
- preparation | ||
if: needs.preparation.outputs.pull_request_merged_status == 'yes' | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash | ||
steps: | ||
- name: Checkout branch | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ vars.DEFAULT_NODE_VERSION }} | ||
cache: npm | ||
cache-dependency-path: package-lock.json | ||
|
||
- name: Set up npm | ||
run: | | ||
npm ci | ||
- name: Publish code coverage | ||
uses: paambaati/[email protected] | ||
env: | ||
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | ||
with: | ||
coverageCommand: npm run test | ||
debug: true | ||
echo "New milestone description: ${{ steps.new_milestone.outputs.description }}" | ||
creation: | ||
needs: | ||
- preparation | ||
- code_coverage | ||
if: needs.preparation.outputs.pull_request_merged_status == 'yes' | ||
runs-on: ubuntu-latest | ||
defaults: | ||
|
@@ -154,7 +134,8 @@ jobs: | |
const params = { | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
title: '${{ needs.preparation.outputs.new_milestone_title }}' | ||
title: '${{ needs.preparation.outputs.new_milestone_title }}', | ||
description: '${{ needs.preparation.outputs.new_milestone_description }}' | ||
} | ||
await github.rest.issues.createMilestone(params) | ||
|
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,42 @@ | ||
name: Upload coverage | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- 'release/**' | ||
tags: | ||
- '!**' | ||
|
||
jobs: | ||
lint_and_test: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash | ||
steps: | ||
- name: Checkout branch | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ vars.DEFAULT_NODE_VERSION }} | ||
cache: npm | ||
cache-dependency-path: package-lock.json | ||
|
||
- name: Set up npm | ||
run: | | ||
npm ci | ||
- name: Exec lint command | ||
run: | | ||
npm run lint | ||
- name: Publish code coverage | ||
uses: paambaati/[email protected] | ||
env: | ||
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | ||
with: | ||
coverageCommand: npm run test | ||
debug: true |
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
Oops, something went wrong.