Skip to content

Commit

Permalink
Feature/npm publish script (#59)
Browse files Browse the repository at this point in the history
* chore: modify npm script

* fix: run npm install from packages
  • Loading branch information
amihajlovski authored Dec 1, 2023
1 parent 307e1a3 commit 69199a1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 69199a1

Please sign in to comment.