Skip to content

Commit

Permalink
Feature/venia sample payments cashondelivery from latest develop (#4401)
Browse files Browse the repository at this point in the history
* New Commit to Create NEW PR with Latest Develop

* Fixing Prettier Issues

* Adding workflow file to publish package

* Updating Namespace to @adobe

* Fixing Prettier Issues

* Adding module to venia-concept/package.json

* PWA Gomage

* Adding Alpha versions

* Removing Adobe Braintree Plugin from Package.json

---------

Co-authored-by: Aanchal Pawar <[email protected]>
Co-authored-by: glo82145 <[email protected]>
  • Loading branch information
3 people authored Feb 14, 2025
1 parent e8cd4b2 commit be6ec8f
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 5 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/publish-cod-to-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: npm-publish
on:
push:
branches:
- feature/venia-sample-payments-cashondelivery-from-latest-develop

jobs:
npm-publish:
name: npm-publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: Navigate to specific package
run: cd packages/extensions/venia-sample-payments-cashondelivery

- name: Install dependencies
run: |
cd packages/extensions/venia-sample-payments-cashondelivery
npm install --legacy-peer-deps --ignore-scripts
- name: Publish package
uses: JS-DevTools/npm-publish@v1
with:
package: "packages/extensions/venia-sample-payments-cashondelivery/package.json" # Explicitly specify the package
access: "public"
token: ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,21 @@ module.exports = targets => {
payments.add({
paymentCode: 'cashondelivery',
importPath:
'@magento/venia-sample-payments-cashondelivery/src/components/cashondelivery.js'
'@adobe/venia-sample-payments-cashondelivery/src/components/cashondelivery.js'
})
);
editablePaymentTypes.tap(editablePaymentTypes => {
editablePaymentTypes.add({
paymentCode: 'cashondelivery',
importPath:
'@magento/venia-sample-payments-cashondelivery/src/components/editcod.js'
'@adobe/venia-sample-payments-cashondelivery/src/components/editcod.js'
});
});
summaryPagePaymentTypes.tap(paymentSummaries =>
paymentSummaries.add({
paymentCode: 'cashondelivery',
importPath:
'@magento/venia-sample-payments-cashondelivery/src/components/summarycod.js'
'@adobe/venia-sample-payments-cashondelivery/src/components/summarycod.js'
})
);
};
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@magento/venia-sample-payments-cashondelivery",
"version": "0.0.1",
"name": "@adobe/venia-sample-payments-cashondelivery",
"version": "0.0.1-alpha.6",
"publishConfig": {
"access": "public"
},
Expand Down
1 change: 1 addition & 0 deletions packages/venia-concept/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
},
"homepage": "https://github.com/magento/pwa-studio/tree/main/packages/venia-concept#readme",
"dependencies": {
"@adobe/venia-sample-payments-cashondelivery": "~0.0.1-alpha.6",
"@magento/pwa-buildpack": "11.5.4-alpha.6"
},
"devDependencies": {
Expand Down

0 comments on commit be6ec8f

Please sign in to comment.