Skip to content

Commit

Permalink
chore: modify npm script (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
amihajlovski authored Dec 1, 2023
1 parent 7e4c0cb commit 307e1a3
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 9 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,14 @@ 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/
# Build and publish to npm
- run: cd packages/adyen-salesforce-pwa/ && npm publish --access public
# Enter the package
- run: cd packages/adyen-salesforce-pwa/
# Install the node modules
- run: npm ci
# Build
- run: npm run build-prod
# Publish the npm package
- run: npm publish --dry-run
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
CI: true
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "adyen-salesforce-pwa",
"version": "1.0.0-beta",
"version": "1.0.0-beta.1",
"license": "See license in LICENSE",
"engines": {
"node": "^16.0.0 || ^18.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/adyen-retail-react-app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/adyen-retail-react-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "adyen-retail-react-app",
"version": "1.0.0-beta.0",
"version": "1.0.0-beta.1",
"license": "See license in LICENSE",
"engines": {
"node": "^16.0.0 || ^18.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/adyen-salesforce-pwa/lib/utils/constants.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ export const ORDER = Object.freeze({
CONFIRMATION_STATUS_NOT_CONFIRMED: 'not_confirmed'
})

export const APPLICATION_VERSION = '1.0.0-beta.0'
export const APPLICATION_VERSION = '1.0.0-beta.1'
2 changes: 1 addition & 1 deletion packages/adyen-salesforce-pwa/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/adyen-salesforce-pwa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"payments",
"components"
],
"version": "1.0.0-beta.0",
"version": "1.0.0-beta.1",
"main": "dist/app/index.js",
"bin": {
"include-env": "dist/scripts/include-env.js",
Expand Down

0 comments on commit 307e1a3

Please sign in to comment.