From 0f5952e2506733ed079e9b6501924ec70585e49a Mon Sep 17 00:00:00 2001 From: MDReal32 Date: Mon, 10 Jun 2024 22:31:54 +0400 Subject: [PATCH] chore(github-actions): fix folder name --- .github/workflows/check-version.yml | 21 --------------------- .github/workflows/publish-to-npm.yml | 2 +- 2 files changed, 1 insertion(+), 22 deletions(-) delete mode 100644 .github/workflows/check-version.yml diff --git a/.github/workflows/check-version.yml b/.github/workflows/check-version.yml deleted file mode 100644 index 4a5d4b0..0000000 --- a/.github/workflows/check-version.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Check actual version - -on: - pull_request: - -jobs: - check-version: - runs-on: ubuntu-latest - strategy: - matrix: - paths: ["plugin", "generator"] - steps: - - uses: actions/checkout@v4 - - run: | - PACKAGE_NAME=$(jq -r '.name' < kube-js/{{ matrix.paths }}/package.json) - CURRENT_VERSION=$(jq -r '.version' < kube-js/{{ matrix.paths }}/package.json) - VERSIONS=$(npm view $PACKAGE_NAME --json | jq -r '.versions') - if [[ $VERSIONS == *"$CURRENT_VERSION"* ]]; then - echo "Version $CURRENT_VERSION already exists" - exit 1 - fi diff --git a/.github/workflows/publish-to-npm.yml b/.github/workflows/publish-to-npm.yml index a5e4665..900b095 100644 --- a/.github/workflows/publish-to-npm.yml +++ b/.github/workflows/publish-to-npm.yml @@ -32,7 +32,7 @@ jobs: - name: Calculate folder hash id: calculate-hash run: | - FOLDER_TO_HASH="kubejs/${{ matrix.package_name }}" + FOLDER_TO_HASH="kube-js/${{ matrix.package_name }}" HASH_FILE=".folder_hash" # Calculate the current hash