diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 1585cac..90a8ef8 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -49,9 +49,9 @@ jobs: - name: Lint frontend run: | cd plugin - npm install + npm ci npm run lint - if [[ -n $(git status --porcelain) ]]; then + if [[ $(git status --porcelain) ]]; then git status --porcelain echo "Failing CI because the working directory is not clean after linting." exit 1 @@ -60,5 +60,5 @@ jobs: - name: Test frontend run: | cd plugin - npm install + npm ci npm run test diff --git a/.github/workflows/publish-plugin.yml b/.github/workflows/publish-plugin.yml index 9e899d8..db0cf59 100644 --- a/.github/workflows/publish-plugin.yml +++ b/.github/workflows/publish-plugin.yml @@ -29,7 +29,7 @@ jobs: - name: Build plugin run: | cd plugin - npm install + npm ci npm run build - name: Create release @@ -38,7 +38,7 @@ jobs: run: | tag="${GITHUB_REF#refs/tags/}" - cd plugin/build + cd plugin/dist gh release create "$tag" \ --title="$tag" \