-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to node18 + update actions (#47)
- Loading branch information
1 parent
5e7a9fc
commit 685f560
Showing
22 changed files
with
2,506 additions
and
4,038 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,82 @@ | ||
# Summary: | ||
# Automatically tag and release when changes land on the "main" branch. | ||
# | ||
# See https://github.com/PaulHatch/semantic-version https://github.com/PaulHatch/semantic-version/tree/v5.0.2 | ||
# See https://github.com/softprops/action-gh-release https://github.com/softprops/action-gh-release/tree/v1 | ||
|
||
name: 'Auto release' | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
tag-and-release: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Fetching all commits for the current branch | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # Force fetch all commits - See https://github.com/PaulHatch/semantic-version#important-note-regarding-the-checkout-action | ||
|
||
# Outputs documentation: https://github.com/PaulHatch/semantic-version/blob/master/src/main.ts#L22-L33 | ||
- name: Resolving next Release Candidate version using semantic-version | ||
uses: paulhatch/semantic-version@v5.0.2 | ||
id: next_semantic_version | ||
with: # See https://github.com/PaulHatch/semantic-version#usage | ||
tag_prefix: "v" # The prefix to use to identify tags | ||
major_pattern: "(MAJOR)" # A string which, if present in a git commit, indicates that a change represents a major (breaking) change | ||
minor_pattern: "(MINOR)" # Same as above except indicating a minor change | ||
version_format: "${major}.${minor}.${patch}-rc.${increment}" # A string to determine the format of the version output | ||
bump_each_commit: true # If this input is set to true, every commit will be treated as a new version, bumping the patch, minor, or major version based on the commit message. | ||
|
||
- name: Printing semantic-version outputs (for debugging) | ||
run: | | ||
echo "Most useful outputs:" | ||
echo "Next version: ${{steps.next_semantic_version.outputs.version}}" | ||
echo "Next version tag: ${{steps.next_semantic_version.outputs.version_tag}}" | ||
echo -e "\n All outputs:" | ||
echo "version: ${{steps.next_semantic_version.outputs.version}}" | ||
echo "major: ${{steps.next_semantic_version.outputs.major}}" | ||
echo "minor: ${{steps.next_semantic_version.outputs.minor}}" | ||
echo "patch: ${{steps.next_semantic_version.outputs.patch}}" | ||
echo "increment: ${{steps.next_semantic_version.outputs.increment}}" | ||
echo "version_type: ${{steps.next_semantic_version.outputs.version_type}}" | ||
echo "changed: ${{steps.next_semantic_version.outputs.changed}}" | ||
echo "authors: ${{steps.next_semantic_version.outputs.authors}}" | ||
echo "version_tag: ${{steps.next_semantic_version.outputs.version_tag}}" | ||
echo "previous_commit: ${{steps.next_semantic_version.outputs.previous_commit}}" | ||
echo "current_commit: ${{steps.next_semantic_version.outputs.current_commit}}" | ||
- name: Creating Git release tag for the "${{steps.next_semantic_version.outputs.version_tag}}" version | ||
uses: softprops/action-gh-release@v1 | ||
with: # See https://github.com/softprops/action-gh-release#-customizing | ||
token: "${{ secrets.GITHUB_TOKEN }}" | ||
tag_name: ${{steps.next_semantic_version.outputs.version_tag}} | ||
name: "Automatic release ${{steps.next_semantic_version.outputs.version_tag}}" | ||
prerelease: false | ||
generate_release_notes: true | ||
files: | | ||
CHANGELOG.md | ||
- name: Updating Git release tag for "latest" version | ||
uses: softprops/action-gh-release@v1 | ||
with: # See https://github.com/softprops/action-gh-release#-customizing | ||
token: "${{ secrets.GITHUB_TOKEN }}" | ||
tag_name: latest | ||
name: "Latest release (auto-update) - UNSAFE for production usage" | ||
prerelease: false | ||
generate_release_notes: true | ||
files: | | ||
CHANGELOG.md | ||
- name: Updating Git release tag for the major "${{steps.next_semantic_version.outputs.major}}" version | ||
uses: softprops/action-gh-release@v1 | ||
with: # See https://github.com/softprops/action-gh-release#-customizing | ||
token: "${{ secrets.GITHUB_TOKEN }}" | ||
tag_name: ${{steps.next_semantic_version.outputs.major}} | ||
name: "${{steps.next_semantic_version.outputs.major}} latest release (auto-update)" | ||
prerelease: false | ||
generate_release_notes: true | ||
files: | | ||
CHANGELOG.md |
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,81 @@ | ||
# Summary: | ||
# Automatically tag and release when changes land on the "main" branch. | ||
# | ||
# See https://github.com/PaulHatch/semantic-version https://github.com/PaulHatch/semantic-version/tree/v5.0.2 | ||
# See https://github.com/softprops/action-gh-release https://github.com/softprops/action-gh-release/tree/v1 | ||
|
||
name: 'Auto release (release candidate)' | ||
on: | ||
push: | ||
branches-ignore: | ||
- main | ||
|
||
jobs: | ||
tag-and-release: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # Force fetch all commits - See https://github.com/PaulHatch/semantic-version#important-note-regarding-the-checkout-action | ||
|
||
# Outputs documentation: https://github.com/PaulHatch/semantic-version/blob/master/src/main.ts#L22-L33 | ||
- name: Resolving next Release Candidate version using semantic-version | ||
uses: paulhatch/semantic-version@v5.0.2 | ||
id: next_semantic_version | ||
with: # See https://github.com/PaulHatch/semantic-version#usage | ||
tag_prefix: "v" # The prefix to use to identify tags | ||
major_pattern: "(MAJOR)" # A string which, if present in a git commit, indicates that a change represents a major (breaking) change | ||
minor_pattern: "(MINOR)" # Same as above except indicating a minor change | ||
version_format: "${major}.${minor}.${patch}-rc.${increment}" # A string to determine the format of the version output | ||
bump_each_commit: false # If this input is set to true, every commit will be treated as a new version, bumping the patch, minor, or major version based on the commit message. | ||
|
||
- name: Printing semantic-version outputs (for debugging) | ||
run: | | ||
echo "Most useful outputs:" | ||
echo "Next version: ${{steps.next_semantic_version.outputs.version}}" | ||
echo "Next version tag: ${{steps.next_semantic_version.outputs.version_tag}}" | ||
echo -e "\n All outputs:" | ||
echo "version: ${{steps.next_semantic_version.outputs.version}}" | ||
echo "major: ${{steps.next_semantic_version.outputs.major}}" | ||
echo "minor: ${{steps.next_semantic_version.outputs.minor}}" | ||
echo "patch: ${{steps.next_semantic_version.outputs.patch}}" | ||
echo "increment: ${{steps.next_semantic_version.outputs.increment}}" | ||
echo "version_type: ${{steps.next_semantic_version.outputs.version_type}}" | ||
echo "changed: ${{steps.next_semantic_version.outputs.changed}}" | ||
echo "authors: ${{steps.next_semantic_version.outputs.authors}}" | ||
echo "version_tag: ${{steps.next_semantic_version.outputs.version_tag}}" | ||
echo "previous_commit: ${{steps.next_semantic_version.outputs.previous_commit}}" | ||
echo "current_commit: ${{steps.next_semantic_version.outputs.current_commit}}" | ||
- name: Creating Git release tag for the ${{steps.next_semantic_version.outputs.version}} version | ||
uses: softprops/action-gh-release@v1 | ||
with: # See https://github.com/softprops/action-gh-release#-customizing | ||
token: "${{ secrets.GITHUB_TOKEN }}" | ||
tag_name: ${{steps.next_semantic_version.outputs.version}} | ||
name: "Automatic release ${{steps.next_semantic_version.outputs.version}}" | ||
prerelease: true | ||
generate_release_notes: true | ||
files: | | ||
CHANGELOG.md | ||
- name: Updating Git release tag for "latest-rc" version | ||
uses: softprops/action-gh-release@v1 | ||
with: # See https://github.com/softprops/action-gh-release#-customizing | ||
token: "${{ secrets.GITHUB_TOKEN }}" | ||
tag_name: latest-rc | ||
name: "Latest release (auto-update) - UNSAFE for production usage" | ||
prerelease: true | ||
generate_release_notes: true | ||
files: | | ||
CHANGELOG.md | ||
- name: Updating Git release tag for the major "${{steps.next_semantic_version.outputs.major}}-rc" version | ||
uses: softprops/action-gh-release@v1 | ||
with: # See https://github.com/softprops/action-gh-release#-customizing | ||
token: "${{ secrets.GITHUB_TOKEN }}" | ||
tag_name: "${{steps.next_semantic_version.outputs.major}}-rc" | ||
name: "${{steps.next_semantic_version.outputs.major}}-rc latest release (auto-update)" | ||
prerelease: true | ||
generate_release_notes: true | ||
files: | | ||
CHANGELOG.md |
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
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,22 +1,22 @@ | ||
# Summary: | ||
# Test if the the GitHub Action builds correctly. | ||
# Test if the GitHub Action builds correctly. | ||
# Makes sure the GitHub Action builds when being built by GitHub Actions. | ||
# | ||
# See https://github.com/actions/checkout https://github.com/actions/checkout/releases/tag/v2 | ||
# See https://github.com/actions/checkout https://github.com/actions/checkout/releases/tag/v3 | ||
|
||
name: 'GitHub Action build test' | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
- 'releases/*' | ||
|
||
jobs: | ||
run-build-test: | ||
runs-on: ubuntu-18.04 | ||
strategy: | ||
matrix: | ||
version: [ 16, 18, 20 ] | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- run: | | ||
yarn | ||
yarn build:once |
Oops, something went wrong.