-
Notifications
You must be signed in to change notification settings - Fork 67
Add beta release process #898
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
45cff63
a75b26b
92e36de
1b12767
2e421f6
abd0032
90cc310
7c6a3d4
00f7e27
405ae66
c0b300a
43a3126
8af8bb9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| #!/bin/sh | ||
|
|
||
bidoubiwa marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| # This script is ran whenever a PR is made to implement a Meilisearch prototype. | ||
| # For example if Meilisearch creates a prototype for radioactive search, the SDK may implement a way to try out the radioactive search. | ||
| # Nonetheless, the tests of this implentation should run against the prototype and not the latest release of Meilisearch. | ||
| # To be able to do so, Meilisearch creates a docker image with the changes. | ||
| # The purpose of this script is to find the correct docker image containing the changes. | ||
| # For example, | ||
| # The radioactive search docker image is named `v0.30.0-radioactive-search.beta.0` | ||
| # our branch is named `prototype/radioactive-search.0` | ||
| # Using the branch name, this script is going to retrieve the name of the docker image. | ||
|
|
||
| # See https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables for references on GITHUB_REF_NAME | ||
| prototype_branch=$1 # $GITHUB_REF_NAME | ||
| prototype_branch=$(echo $prototype_branch | sed -r 's/prototype-beta\///') # remove pre-prending prototype-beta/ | ||
| prototype_name=$(echo $prototype_branch | sed -r 's/-beta//') # remove appended -beta | ||
|
|
||
| docker_image=$(curl "https://hub.docker.com/v2/repositories/getmeili/meilisearch/tags?&page_size=100" | jq | grep "$prototype_name" | head -1) | ||
| docker_image=$(echo $docker_image | grep '"name":' | cut -d ':' -f 2- | tr -d ' ' | tr -d '"' | tr -d ',') | ||
| echo $docker_image | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,12 +21,12 @@ jobs: | |
| - name: Build instant-meilisearch | ||
| run: yarn build | ||
| - name: Publish with latest tag | ||
| if: "!github.event.release.prerelease && !contains(github.ref, 'beta')" | ||
| if: '!github.event.release.prerelease' | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In the step |
||
| run: npm publish . | ||
| env: | ||
| NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | ||
| - name: Publish with beta tag | ||
| if: "github.event.release.prerelease && contains(github.ref, 'beta')" | ||
| if: 'github.event.release.prerelease' | ||
| run: npm publish . --tag beta | ||
| env: | ||
| NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | ||
Uh oh!
There was an error while loading. Please reload this page.