Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
fix gha
Browse files Browse the repository at this point in the history
  • Loading branch information
xgui3783 committed Aug 11, 2020
1 parent d704dbe commit 8a1e498
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/cd-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 8a1e498

Please sign in to comment.