From 51d0acef8b7f56979fcbf95f2c9ca5166807e3c4 Mon Sep 17 00:00:00 2001 From: Ashley Date: Mon, 30 Oct 2023 19:49:48 +0000 Subject: [PATCH] Update package.json name using jq - Use `jq` to update the `name` field in `package.json` file to "wizarr-vue-modal" and "@wizarrrr/wizarr-vue-modal" respectively. - This change is necessary for proper package naming. - Also, cleanup unused files. --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9eea3d8..4f064ac 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,7 +37,7 @@ jobs: - name: Set package.json name to wizarr-vue-modal run: | - sed -i 's/"name": ".*"/"name": "wizarr-vue-modal"/' package.json + jq '.name = "wizarr-vue-modal"' < package.json > temp.json && mv temp.json package.json - name: Publish to NPM run: | @@ -46,7 +46,7 @@ jobs: - name: Set package.json name to @wizarrrr/wizarr-vue-modal run: | - sed -i 's/"name": ".*"/"name": "@wizarrrr\/wizarr-vue-modal"/' package.json + jq '.name = "@wizarrrr/wizarr-vue-modal"' < package.json > temp.json && mv temp.json package.json - name: Cleanup run: rm .npmrc