-
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 #336 from zimicjs/release/v0.9.0
chore(release): v0.9.0
- Loading branch information
Showing
108 changed files
with
5,538 additions
and
4,270 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 |
---|---|---|
|
@@ -12,6 +12,7 @@ | |
[ | ||
"root", | ||
"ci", | ||
"wiki", | ||
"release", | ||
"zimic-test-client", | ||
"#zimic", | ||
|
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,48 @@ | ||
name: Get zimic version | ||
description: Get zimic version | ||
|
||
inputs: | ||
ref-name: | ||
description: The tag name that triggered the workflow | ||
required: true | ||
working-directory: | ||
description: The working directory to run the action in | ||
|
||
outputs: | ||
value: | ||
description: The version of the zimic package | ||
value: ${{ steps.zimic-version.outputs.value }} | ||
label: | ||
description: The label of the zimic package version | ||
value: ${{ steps.zimic-label.outputs.value }} | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Get zimic version | ||
id: zimic-version | ||
shell: bash | ||
working-directory: ${{ inputs.working-directory }} | ||
run: | | ||
version=$(jq -r '.version' ./packages/zimic/package.json) | ||
echo "value=$version" >> $GITHUB_OUTPUT | ||
if [[ '${{ inputs.ref-name }}' != "v$version" ]]; then | ||
echo 'The ref name does not match the package version.' >&2 | ||
exit 1 | ||
fi | ||
- name: Get zimic label | ||
id: zimic-label | ||
shell: bash | ||
working-directory: ${{ inputs.working-directory }} | ||
run: | | ||
# Check if the ref name is a valid semantic version. | ||
if echo '${{ inputs.ref-name }}' | grep -qP '^v[0-9]+\.[0-9]+\.[0-9]+(-[a-z0-9-]+\.[0-9]+)?$'; then | ||
# Extract the label of the ref name or use 'latest' as the default. | ||
value=$(echo '${{ inputs.ref-name }}' | grep -oP '(?<=-)[a-z0-9-]+(?=\.[0-9]+$)' || echo latest) | ||
echo "value=$value" >> $GITHUB_OUTPUT | ||
else | ||
echo "The ref name '${{ inputs.ref-name }}' is not valid." >&2 | ||
exit 1 | ||
fi |
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,58 @@ | ||
name: Release Wiki | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
concurrency: | ||
group: release-wiki | ||
cancel-in-progress: false | ||
|
||
env: | ||
NODE_VERSION: 20 | ||
TURBO_LOG_ORDER: stream | ||
|
||
jobs: | ||
release-zimic-wiki: | ||
name: Release zimic to GitHub Wiki | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
|
||
environment: Wiki | ||
|
||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
path: zimic | ||
|
||
- name: Get zimic release version | ||
id: zimic-version | ||
uses: ./zimic/.github/actions/zimic-version | ||
with: | ||
ref-name: ${{ github.ref_name }} | ||
working-directory: zimic | ||
|
||
- name: Checkout wiki | ||
uses: actions/checkout@v4 | ||
if: ${{ steps.zimic-version.outputs.label == 'latest' }} | ||
with: | ||
repository: zimicjs/zimic.wiki | ||
path: zimic.wiki | ||
|
||
- name: Sync wiki with markdown docs | ||
if: ${{ steps.zimic-version.outputs.label == 'latest' }} | ||
working-directory: zimic.wiki | ||
run: | | ||
git config user.name '${{ vars.ZIMIC_WIKI_COMMIT_USER_NAME }}' | ||
git config user.email '${{ vars.ZIMIC_WIKI_COMMIT_USER_EMAIL }}' | ||
bash scripts/sync.sh '${{ github.ref_name }}' | ||
git add . | ||
git commit -m 'docs(wiki): zimic@${{ steps.zimic-version.outputs.value }}' | ||
git push |
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 @@ | ||
:construction: This is still a work in progress. | ||
|
||
See https://github.com/zimicjs/zimic/issues/18. |
Oops, something went wrong.