From 8a1e498d3e0ac0ed2b259646e97b3c1442a78dc1 Mon Sep 17 00:00:00 2001 From: Xiao Gui Date: Tue, 11 Aug 2020 14:14:18 +0200 Subject: [PATCH] fix gha --- .github/workflows/cd-release.yml | 6 ++---- package.json | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cd-release.yml b/.github/workflows/cd-release.yml index 99fadb5..fe88ee5 100644 --- a/.github/workflows/cd-release.yml +++ b/.github/workflows/cd-release.yml @@ -9,12 +9,10 @@ jobs: runs-on: ubuntu-latest steps: - run: | - PACKAGEJSON_VER=$(cat package.json | jq -r '.version') - GITHUB_REF_VERSION=${GITHUB_REF#v} + PACKAGEJSON_VER=v$(cat package.json | jq -r '.version') echo PACKAGEJSON_VER $PACKAGEJSON_VER - echo GITHUB_REF_VERSION $GITHUB_REF_VERSION echo GITHUB_REF $GITHUB_REF - if [ "$GITHUB_REF_VERSION" = "$PACKAGEJSON_VER" ]; then + if [ "$GITHUB_REF" = "$PACKAGEJSON_VER" ]; then exit 0 else exit 1 diff --git a/package.json b/package.json index b07f144..3f47a9e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "kg-dataset-previewer", - "version": "1.0.1", + "version": "1.0.2", "description": "Preview a few manually curated datasets.", "main": "dist/index.js", "module": "dist/index.mjs",