Skip to content

Commit

Permalink
Update package.json name using jq
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
realashleybailey committed Oct 30, 2023
1 parent b920b0c commit 51d0ace
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
Expand Down

0 comments on commit 51d0ace

Please sign in to comment.