From 71bd050e958df717b2f8feeff6c7276274023eda Mon Sep 17 00:00:00 2001 From: Johnathan Date: Tue, 10 Dec 2024 20:04:23 -0700 Subject: [PATCH] Release Version 2.9.5 (#337) * Fix DQ_CompletenessOmission Typo (#284) * Fix Typo DQ_CompletenessOmmission to DQ_CompletenessOmission * Increment Patch Version * 2.8.3 * Add DQ_NonQuantitativeAttributeAccuracy * Release Version 2.9.0 (#289) * Upgrade mdCodes mdCodes -> 2.9.0 * Increment Ruby Version v2.8.4 * Increment package.json Version v2.8.4 Update package-lock.json * Increment Patch Version v2.8.4 * Update package-lock.json * Replace bower.json * Re-remove bower.json * Increment Minor Version * Upgrade mdCodes (#292) * Update adiwg-json_schemas.gemspec and package.json versions to 2.9.1 * Update schema.json version to 2.9.1 * Update dataQualityReport.json schema Remove DQ_ from report type names. * Update dataQualityReport.json schema with translation descriptions for quality report types. * Update dataQualityReport.json schema with corrected translation for quality report types. * Upgrade adiwg-mdcodes to v2.9.2 * Add Gemfile.lock Remove Gemfile.lock from .gitignore and add it. Update mdCodes version to be exact. * Update dataQualityReport.json Fixed typo of FGDC --------- Co-authored-by: Hilmar Maier * Fix Data Quality Enums (#325) * Update dataQualityReport.json schema with corrected translation for quality report types * chore: Update adiwg-mdjson_schemas to version 2.9.2-beta.5 * Update evaluationMethod.json schema with corrected enum values for evaluation method types * chore: Update adiwg-mdcodes to version 2.9.3.pre.beta.3 * chore: Update adiwg-mdjson_schemas to version 2.9.2-beta.20 * Update dataQualityReport.json schema with corrected translation for quality report types * chore: Update adiwg-mdjson_schemas and related files to version 2.9.2-beta.21 * Prepare for Release v2.9.2 (#328) * chore: Update adiwg-mdjson_schemas and related files to version 2.9.2 * chore: Update adiwg-mdcodes to version 2.9.3 * Prepare release version 2.9.5 (#335) * Fix DQ_CompletenessOmission Typo (#284) (#287) * Fix Typo DQ_CompletenessOmmission to DQ_CompletenessOmission * Increment Patch Version * 2.8.3 * Add DQ_NonQuantitativeAttributeAccuracy * Squashed commit of the following: commit f02a08ce68c3e8990aea1117b5b72b4c1ae9e6f3 Author: Johnathan Date: Tue Feb 13 15:17:33 2024 -0700 Release Version 2.9.0 (#289) * Upgrade mdCodes mdCodes -> 2.9.0 * Increment Ruby Version v2.8.4 * Increment package.json Version v2.8.4 Update package-lock.json * Increment Patch Version v2.8.4 * Update package-lock.json * Replace bower.json * Re-remove bower.json * Increment Minor Version commit 5b598a091b1cf312a041c3fef5efeffa96873003 Author: Johnathan Date: Mon Feb 12 11:32:34 2024 -0700 Fix DQ_CompletenessOmission Typo (#284) * Fix Typo DQ_CompletenessOmmission to DQ_CompletenessOmission * Increment Patch Version * 2.8.3 * Add DQ_NonQuantitativeAttributeAccuracy * chore: Update adiwg-mdjson_schemas and related files to version 2.9.2 * chore: Update adiwg-mdcodes to version 2.9.3 * chore: Update adiwg-mdcodes to version 2.9.4-beta.0 and adiwg-mdjson_schemas to version 2.9.3-beta.0 * chore: Update adiwg-mdcodes to version 2.9.4-beta.0 and adiwg-mdjson_schemas to version 2.9.3-beta.0 * Update dataQualityReport.json schema with corrected translation for quality report types * chore: Update adiwg-mdcodes to version 2.9.4-beta.1 and adiwg-mdjson_schemas to version 2.9.3-beta.1 * Update dataQualityReport.json schema with corrected translation for quality report types * chore: Update versions mdCodes updated to 2.9.4-beta.4 mdJson-schemas updated to 2.9.3-beta.2 * Fix Data Quality Report Types * chore: Increment beta version * chore: Update adiwg-mdcodes and adiwg-mdjson_schemas versions to 2.9.4.pre.beta.5 and 2.9.3.pre.beta.5 respectively * chore: Update adiwg-mdcodes and adiwg-mdjson_schemas versions to 2.10.0 --------- Co-authored-by: hmaier-fws * Add GitHub Actions workflow for automated release creation (#338) * Add GitHub Actions workflow for automated deployment to GitHub Pages * Rename action * Add Node.js setup step to release workflow --------- Co-authored-by: Hilmar Maier --- .github/workflows/create-release.yml | 41 ++++++++++++++++++++++++++++ Gemfile.lock | 6 ++-- adiwg-json_schemas.gemspec | 2 +- lib/adiwg/mdjson_schemas/version.rb | 2 +- package-lock.json | 4 +-- package.json | 4 +-- schema/dataQualityReport.json | 30 ++++++++++---------- schema/schema.json | 2 +- 8 files changed, 66 insertions(+), 25 deletions(-) create mode 100644 .github/workflows/create-release.yml diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml new file mode 100644 index 0000000..68e883b --- /dev/null +++ b/.github/workflows/create-release.yml @@ -0,0 +1,41 @@ +name: Deploy to GitHub Pages + +on: + push: + branches: + - master + +jobs: + create-release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: "16" + + - name: Create Tag + id: create_tag + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + # Read version from package.json + version=$(node -p "require('./package.json').version") + version_tag="v$version" + echo "Version from package.json: $version_tag" + echo "version=$version_tag" >> $GITHUB_OUTPUT + git tag $version_tag + git push origin $version_tag + + - name: Create GitHub Release + uses: ncipollo/release-action@v1 + with: + tag: ${{ steps.create_tag.outputs.version }} + name: Release ${{ steps.create_tag.outputs.version }} + body: Automated release for version ${{ steps.create_tag.outputs.version }}. + draft: false + prerelease: false + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/Gemfile.lock b/Gemfile.lock index ac534bd..2e2297d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,14 +1,14 @@ PATH remote: . specs: - adiwg-mdjson_schemas (2.9.2) + adiwg-mdjson_schemas (2.9.5) GEM remote: https://rubygems.org/ specs: addressable (2.8.6) public_suffix (>= 2.0.2, < 6.0) - adiwg-mdcodes (2.9.3) + adiwg-mdcodes (2.10.0) json (~> 2.0) json (2.7.2) json-schema (2.8.1) @@ -21,7 +21,7 @@ PLATFORMS arm64-darwin-22 DEPENDENCIES - adiwg-mdcodes (= 2.9.3) + adiwg-mdcodes (= 2.10.0) adiwg-mdjson_schemas! bundler (~> 2) json-schema (~> 2.8.1) diff --git a/adiwg-json_schemas.gemspec b/adiwg-json_schemas.gemspec index b23423a..340b82a 100644 --- a/adiwg-json_schemas.gemspec +++ b/adiwg-json_schemas.gemspec @@ -22,5 +22,5 @@ Gem::Specification.new do |spec| spec.add_development_dependency "rake", ">= 0" spec.add_development_dependency "json-schema", "~> 2.8.1" spec.add_development_dependency "minitest", "~>5" - spec.add_development_dependency "adiwg-mdcodes", "2.9.3" + spec.add_development_dependency "adiwg-mdcodes", "2.10.0" end diff --git a/lib/adiwg/mdjson_schemas/version.rb b/lib/adiwg/mdjson_schemas/version.rb index 52501dc..595d0e8 100644 --- a/lib/adiwg/mdjson_schemas/version.rb +++ b/lib/adiwg/mdjson_schemas/version.rb @@ -1,6 +1,6 @@ module ADIWG module MdjsonSchemas # Current schema version number - VERSION = "2.9.2" + VERSION = "2.9.5" end end diff --git a/package-lock.json b/package-lock.json index 7de7f62..31e3f84 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "mdjson-schemas", - "version": "2.9.2", + "version": "2.9.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "mdjson-schemas", - "version": "2.9.2", + "version": "2.9.5", "license": "GPL-3.0", "devDependencies": { "ajv": "^6.5.0", diff --git a/package.json b/package.json index 9594d81..40b7df4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mdjson-schemas", - "version": "2.9.2", + "version": "2.9.5", "description": "JSON schemas, examples, and templates for ADIwg metadata standards", "main": "index.js", "directories": { @@ -10,7 +10,7 @@ }, "scripts": { "test": "mocha", - "build": "npm install && npm run prepublish", + "build": "bundle && npm install && npm run prepublish", "prepublish": "node scripts/prepublish.js", "release": "npm run prepublish && npm publish" }, diff --git a/schema/dataQualityReport.json b/schema/dataQualityReport.json index 0d968b8..e72413a 100644 --- a/schema/dataQualityReport.json +++ b/schema/dataQualityReport.json @@ -38,21 +38,21 @@ "DCAT": ["no translation"] }, "enum": [ - "AbsolutePositionalAccuracy", - "RelativePositionalAccuracy", - "GriddedDataPositionalAccuracy", - "ConceptualConsistency", - "DomainConsistency", - "FormatConsistency", - "TopologicalConsistency", - "ThematicClassificationCorrectness", - "NonQuantitativeAttributeCorrectness", - "QuantitativeAttributeAccuracy", - "AccuracyOfATimeMeasurement", - "TemporalValidity", - "TemporalConsistency", - "Commission", - "Omission" + "DQ_AbsoluteExternalPositionalAccuracy", + "DQ_RelativeInternalPositionalAccuracy", + "DQ_GriddedDataPositionalAccuracy", + "DQ_ConceptualConsistency", + "DQ_DomainConsistency", + "DQ_FormatConsistency", + "DQ_TopologicalConsistency", + "DQ_ThematicClassificationCorrectness", + "DQ_NonQuantitativeAttributeCorrectness", + "DQ_QuantitativeAttributeAccuracy", + "DQ_AccuracyOfATimeMeasurement", + "DQ_TemporalValidity", + "DQ_TemporalConsistency", + "DQ_CompletenessCommission", + "DQ_CompletenessOmission" ] }, "standaloneQualityReportDetails": { diff --git a/schema/schema.json b/schema/schema.json index 8e29811..61b96a5 100644 --- a/schema/schema.json +++ b/schema/schema.json @@ -1,7 +1,7 @@ { "id": "schema.json#", "$schema": "http://json-schema.org/draft-04/schema#", - "version": "2.9.2", + "version": "2.9.5", "description": "schema for ADIwg mdJSON metadata", "example": "../examples/mdJson.json", "type": "object",