Skip to content

Commit

Permalink
Bump version to 1.0.0.0 and add release notes (#20)
Browse files Browse the repository at this point in the history
* Bump version to 1.0.0.0

Signed-off-by: Joshua Li <[email protected]>

* Add release notes

Signed-off-by: Joshua Li <[email protected]>

* Update release notes

Signed-off-by: Joshua Li <[email protected]>

* Update node version

Signed-off-by: Joshua Li <[email protected]>

* Update release notes

Signed-off-by: Joshua Li <[email protected]>

* Update CI

Signed-off-by: Joshua Li <[email protected]>
  • Loading branch information
joshuali925 authored Jun 30, 2021
1 parent f13317f commit ca400bc
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
env:
PLUGIN_NAME: gantt-chart-dashboards
OPENSEARCH_VERSION: '1.0'
OPENSEARCH_PLUGIN_VERSION: 1.0.0.0-rc1
OPENSEARCH_PLUGIN_VERSION: 1.0.0.0

jobs:

Expand Down
42 changes: 32 additions & 10 deletions .github/workflows/test-and-build-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on: [pull_request, push]
env:
PLUGIN_NAME: gantt-chart-dashboards
OPENSEARCH_VERSION: '1.0'
OPENSEARCH_PLUGIN_VERSION: 1.0.0.0-rc1
OPENSEARCH_PLUGIN_VERSION: 1.0.0.0

jobs:

Expand All @@ -16,39 +16,61 @@ jobs:

steps:
- name: Checkout Plugin
uses: actions/checkout@v1
uses: actions/checkout@v2

- name: Checkout OpenSearch Dashboards
uses: actions/checkout@v1
uses: actions/checkout@v2
with:
repository: opensearch-project/Opensearch-Dashboards
ref: ${{ env.OPENSEARCH_VERSION }}
path: dashboards-visualizations/OpenSearch-Dashboards
- name: Setup Node

- name: Get node and yarn versions
id: versions_step
run: |
echo "::set-output name=node_version::$(node -p "(require('./dashboards-visualizations/OpenSearch-Dashboards/package.json').engines.node).match(/[.0-9]+/)[0]")"
echo "::set-output name=yarn_version::$(node -p "(require('./dashboards-visualizations/OpenSearch-Dashboards/package.json').engines.yarn).match(/[.0-9]+/)[0]")"
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: '10.23.1'
node-version: ${{ steps.versions_step.outputs.node_version }}
registry-url: 'https://registry.npmjs.org'

- name: Install correct yarn version for OpenSearch Dashboards
run: |
npm uninstall -g yarn
echo "Installing yarn ${{ steps.versions_step.outputs.yarn_version }}"
npm i -g yarn@${{ steps.versions_step.outputs.yarn_version }}
- name: Move Gantt Chart to Plugins Dir
run: |
mv gantt-chart OpenSearch-Dashboards/plugins
mv gantt-chart ./dashboards-visualizations/OpenSearch-Dashboards/plugins
- name: Plugin Bootstrap
run: |
cd OpenSearch-Dashboards/plugins/gantt-chart
cd ./dashboards-visualizations/OpenSearch-Dashboards/plugins/gantt-chart
yarn osd bootstrap
- name: Test
run: |
cd OpenSearch-Dashboards/plugins/gantt-chart
cd ./dashboards-visualizations/OpenSearch-Dashboards/plugins/gantt-chart
yarn test --coverage
- name: Upload coverage
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
direcotry: ./dashboards-visualizations/OpenSearch-Dashboards/plugins/trace-analytics

- name: Build Artifact
run: |
cd OpenSearch-Dashboards/plugins/gantt-chart
cd ./dashboards-visualizations/OpenSearch-Dashboards/plugins/gantt-chart
yarn build
mv ./build/*.zip ./build/${{ env.PLUGIN_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}.zip
- name: Upload Artifact
uses: actions/upload-artifact@v1
with:
name: gantt-chart
path: OpenSearch-Dashboards/plugins/gantt-chart/build
path: ./dashboards-visualizations/OpenSearch-Dashboards/plugins/gantt-chart/build
4 changes: 2 additions & 2 deletions gantt-chart/opensearch_dashboards.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "ganttChartDashboards",
"version": "1.0.0.0-rc1",
"opensearchDashboardsVersion": "1.0.0-rc1",
"version": "1.0.0.0",
"opensearchDashboardsVersion": "1.0.0",
"requiredPlugins": [
"visualizations",
"data"
Expand Down
10 changes: 3 additions & 7 deletions gantt-chart/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "gantt-chart-dashboards",
"version": "1.0.0.0-rc1",
"version": "1.0.0.0",
"opensearchDashboards": {
"version": "1.0.0-rc1",
"templateVersion": "1.0.0-rc1"
"version": "1.0.0",
"templateVersion": "1.0.0"
},
"license": "Apache-2.0",
"scripts": {
Expand All @@ -28,9 +28,5 @@
"eslint": "^6.8.0",
"jest": "^26.4.2",
"jest-dom": "^4.0.0"
},
"engines": {
"node": "10.23.1",
"yarn": "^1.21.1"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## Version 1.0.0.0 Release Notes

Compatible with OpenSearch 1.0.0

### Bug Fixes
* Bump glob-parent from 5.1.1 to 5.1.2 in /gantt-chart ([#14](https://github.com/opensearch-project/dashboards-visualizations/pull/14))

### Infrastructure
* Add unit tests and codecov ([#19](https://github.com/opensearch-project/dashboards-visualizations/pull/19))

### Documentation
* Level up markdown contents ([#16](https://github.com/opensearch-project/dashboards-visualizations/pull/16))

### Maintenance
* Bump version to 1.0.0.0 and add release notes ([#20](https://github.com/opensearch-project/dashboards-visualizations/pull/20))

### OpenSearch Migration
* Add release notes for version 1.0.0.0-rc1 ([#13](https://github.com/opensearch-project/dashboards-visualizations/pull/13))
* Update version to rc1 ([#12](https://github.com/opensearch-project/dashboards-visualizations/pull/12))
* Update documentation link to opensearch ([#11](https://github.com/opensearch-project/dashboards-visualizations/pull/11))
* Update issue template with multiple labels ([#8](https://github.com/opensearch-project/dashboards-visualizations/pull/8))
* Rename artifacts to follow camel case ([#7](https://github.com/opensearch-project/dashboards-visualizations/pull/7))

0 comments on commit ca400bc

Please sign in to comment.