From a9c0614edf02d5709cf2574754c6a743e43f4215 Mon Sep 17 00:00:00 2001 From: del15881 Date: Thu, 13 Feb 2025 14:47:04 +0530 Subject: [PATCH] Adding workflow file to publish package --- .github/workflows/publish-cod-to-npm.yml | 32 ++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/publish-cod-to-npm.yml diff --git a/.github/workflows/publish-cod-to-npm.yml b/.github/workflows/publish-cod-to-npm.yml new file mode 100644 index 0000000000..9803f6d9cd --- /dev/null +++ b/.github/workflows/publish-cod-to-npm.yml @@ -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 }} \ No newline at end of file