Skip to content

Commit

Permalink
FORMS-17129: Removing scope from package name
Browse files Browse the repository at this point in the history
  • Loading branch information
akshayvas committed Nov 5, 2024
1 parent 4edc9cf commit 5f43271
Show file tree
Hide file tree
Showing 3 changed files with 4,187 additions and 8,047 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,26 @@ jobs:
id: bump_version
run: |
npm version patch -m "Bump version to %s"
- name: Backup original package.json
run: cp package.json package.json.bak

- name: Modify package.json for scoped publish
run: |
jq '.name = "@aemforms/af-wknd-theme"' package.json > package.json.tmp && mv package.json.tmp package.json
- name: Publish to npm
run: |
npm publish --access public
git push origin HEAD:main
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_DEPLOY_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_DEPLOY_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_DEPLOY_TOKEN }}

- name: Restore original package.json
run: mv package.json.bak package.json

- name: Push changes to remote repository
run: git push origin HEAD:main
env:
GITHUB_TOKEN: ${{ secrets.ADOBE_GH_TOKEN }}
GH_TOKEN: ${{ secrets.ADOBE_GH_TOKEN }}
Loading

0 comments on commit 5f43271

Please sign in to comment.