From 69199a1b3a754f616887c92604b3a9a090297372 Mon Sep 17 00:00:00 2001 From: Aleksandar Mihajlovski Date: Fri, 1 Dec 2023 12:36:13 +0100 Subject: [PATCH] Feature/npm publish script (#59) * chore: modify npm script * fix: run npm install from packages --- .github/workflows/npm-publish.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 50f3c5a..de758d7 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -21,14 +21,12 @@ jobs: - run: cp LICENSE packages/adyen-salesforce-pwa/ # Copy env example file to adyen-salesforce-pwa package - run: cp packages/adyen-retail-react-app/.env.example packages/adyen-salesforce-pwa/ - # Enter the package - - run: cd packages/adyen-salesforce-pwa/ # Install the node modules - - run: npm ci + - run: cd packages/adyen-salesforce-pwa/ && npm ci # Build - - run: npm run build-prod + - run: cd packages/adyen-salesforce-pwa/ && npm run build-prod # Publish the npm package - - run: npm publish --dry-run + - run: cd packages/adyen-salesforce-pwa/ && npm publish --dry-run env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} CI: true \ No newline at end of file