Skip to content

Commit

Permalink
Set package.json name to wizarr-vue-modal
Browse files Browse the repository at this point in the history
- Change the package.json name to "wizarr-vue-modal" using sed command.
- Publish the package to NPM registry using npm publish.
- Change the package.json name to "@wizarrrr/wizarr-vue-modal" using sed command.
- Publish the package to GitHub Packages registry using npm publish.
  • Loading branch information
realashleybailey committed Oct 30, 2023
1 parent 3f4c918 commit c5fd7ac
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,22 @@ jobs:
- name: Build package
run: npm run build # Replace with your build command

- name: Set package.json name to wizarr-vue-modal
run: |
sed -i 's/"name": ".*"/"name": "wizarr-vue-modal"/' package.json
- name: Publish to NPM
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
npm publish --access public
- name: Set package.json name to @wizarrrr/wizarr-vue-modal
run: |
sed -i 's/"name": ".*"/"name": "@wizarrrr\/wizarr-vue-modal"/' package.json
- name: Publish to GitHub Packages
run: |
echo "@wizarrrr:registry=https://npm.pkg.github.com" >> .npmrc
echo "//npm.pkg.github.com/:__authToken={{ secrets.GITHUB_TOKEN }}" > .npmrc
npm publish --access public --registry https://npm.pkg.github.com/wizarrrr
- name: Cleanup
Expand Down

0 comments on commit c5fd7ac

Please sign in to comment.