-
Notifications
You must be signed in to change notification settings - Fork 8
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
1 parent
e0445c9
commit 8866ac4
Showing
9 changed files
with
1,729 additions
and
423 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,31 @@ | ||
name: release | ||
|
||
# Allow to trigger this workflow manually and enter a release version to release | ||
# See: https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/ | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
releaseVersion: | ||
description: "Release tag version" | ||
required: true | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout branch | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: "master" | ||
fetch-depth: 0 | ||
- uses: oleksiyrudenko/gha-git-credentials@v1 | ||
with: | ||
token: "${{ secrets.GITHUB_TOKEN }}" | ||
- name: Use Node.js | ||
uses: actions/setup-node@v2-beta | ||
with: | ||
node-version: 14 | ||
- name: Release version | ||
run: npx -p @release-it/bumper@2.0.0 -p release-it@14.2.1 release-it --verbose --increment ${{ github.event.inputs.releaseVersion }} | ||
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: run-tests | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
tests: | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
node: [ '10', '12', '14', '15' ] # https://nodejs.org/en/about/releases/ | ||
name: NPM test - (Node ${{ matrix.node }}) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2-beta | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- name: install dependencies | ||
run: npm ci | ||
- name: run tests | ||
run: npm test |
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,16 @@ | ||
{ | ||
"hooks": { | ||
"before:release": [ | ||
"npx auto-changelog --latest-version ${version} --ignore-commit-pattern \"^🔖 Release\" --commit-limit false --hide-credit --template https://raw.githubusercontent.com/release-it/release-it/master/templates/keepachangelog.hbs", | ||
"git add CHANGELOG.md" | ||
] | ||
}, | ||
"git": { | ||
"commitMessage": "🔖 Release ${version}", | ||
"tagName": "${version}" | ||
}, | ||
"github": { | ||
"release": true, | ||
"releaseNotes": "npx auto-changelog --latest-version ${version} --stdout --ignore-commit-pattern \"^🔖 Release\" --commit-limit false --hide-credit --template https://raw.githubusercontent.com/release-it/release-it/master/templates/changelog-compact.hbs" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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.