-
Notifications
You must be signed in to change notification settings - Fork 5
feat: try out to dev deploy local changes #416
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,6 @@ on: | |
| pull_request: | ||
| branches: | ||
| - main | ||
| - alpha | ||
|
|
||
| jobs: | ||
| build_and_test: | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -4,7 +4,16 @@ on: | |||||||||||||||||
| push: | ||||||||||||||||||
| branches: | ||||||||||||||||||
| - main | ||||||||||||||||||
| - alpha | ||||||||||||||||||
| workflow_dispatch: | ||||||||||||||||||
| inputs: | ||||||||||||||||||
| prerelease: | ||||||||||||||||||
| description: 'Create a pre-release version' | ||||||||||||||||||
| required: false | ||||||||||||||||||
| default: 'false' | ||||||||||||||||||
| type: choice | ||||||||||||||||||
| options: | ||||||||||||||||||
| - 'false' | ||||||||||||||||||
| - 'true' | ||||||||||||||||||
|
|
||||||||||||||||||
| jobs: | ||||||||||||||||||
| release: | ||||||||||||||||||
|
|
@@ -27,6 +36,20 @@ jobs: | |||||||||||||||||
| - name: Unit tests | ||||||||||||||||||
| run: npm run test:ci | ||||||||||||||||||
|
|
||||||||||||||||||
| - run: npm run release | ||||||||||||||||||
| - name: Check manual release conditions | ||||||||||||||||||
| if: github.event_name == 'workflow_dispatch' && github.event.inputs.prerelease == 'false' && github.ref != 'refs/heads/main' | ||||||||||||||||||
| run: | | ||||||||||||||||||
| echo "::error::Cannot run standard release from non-main branch. Use prerelease=true instead." | ||||||||||||||||||
| exit 1 | ||||||||||||||||||
|
|
||||||||||||||||||
| - name: Pre-release | ||||||||||||||||||
| if: github.event.inputs.prerelease == 'true' | ||||||||||||||||||
| run: npm run release | ||||||||||||||||||
| env: | ||||||||||||||||||
| GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }} | ||||||||||||||||||
|
|
||||||||||||||||||
| - name: Automatic release | ||||||||||||||||||
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | ||||||||||||||||||
| run: npm run release | ||||||||||||||||||
| env: | ||||||||||||||||||
| GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }} | ||||||||||||||||||
|
||||||||||||||||||
| GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }} | |
| GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }} | |
| - name: Manual standard release | |
| if: github.event_name == 'workflow_dispatch' && github.event.inputs.prerelease == 'false' && github.ref == 'refs/heads/main' | |
| run: npm run release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }} |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,6 +1,10 @@ | ||||||
| const package = 'systemlink-grafana-plugins'; | ||||||
|
|
||||||
| module.exports = { | ||||||
| branches: [ | ||||||
| 'main', | ||||||
| { name: '*', prerelease: 'pre' } | ||||||
|
Collaborator
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. this will make sure, any other branch other than main and alpha will create pre release version like
|
||||||
| { name: '*', prerelease: 'pre' } | |
| { name: '!(main)', prerelease: 'pre' } |
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
workflow_dispatchsection enables manual triggering of GitHub Actions workflow