Skip to content

Commit

Permalink
Try with work directory
Browse files Browse the repository at this point in the history
  • Loading branch information
del15881 committed Feb 11, 2025
1 parent 5ca5272 commit e92320a
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/publish-to-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,28 @@ on:
push:
branches:
- PWA-3420

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

- name: Checkout repository
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/adobe-plugin-braintree-three-d-secure


- name: Install dependencies
run: |
cd packages/extensions/adobe-plugin-braintree-three-d-secure
npm install --legacy-peer-deps --ignore-scripts
working-directory: packages/extensions/adobe-plugin-braintree-three-d-secure
run: npm install --legacy-peer-deps --ignore-scripts

- name: Publish package
uses: JS-DevTools/npm-publish@v1
with:
package: "packages/extensions/adobe-plugin-braintree-three-d-secure/package.json" # Explicitly specify the package
package: "package.json" # Since working-directory is set, this refers to the correct package.json
access: "public"
token: ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
token: ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
working-directory: packages/extensions/adobe-plugin-braintree-three-d-secure

0 comments on commit e92320a

Please sign in to comment.