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