Skip to content

Commit

Permalink
v6 - Removing UMD from npm package and adjusting artifact to contain …
Browse files Browse the repository at this point in the history
…translations (#2650)
  • Loading branch information
ribeiroguilherme authored Apr 17, 2024
1 parent 134607e commit 129241a
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 12 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: 18.18
registry-url: https://registry.npmjs.org/

- run: yarn install --frozen-lockfile

# Copy README to adyen-web package
- run: cp README.md packages/lib/

# Copy LICENSE to adyen-web package
- run: cp LICENSE packages/lib/
# Copy translations to adyen-web package
- run: cp packages/server/translations/ packages/lib/ -r

# Build and publish to npm with alpha tag
- name: Build and prerelease
if: "github.event.release.prerelease"
Expand All @@ -34,6 +37,7 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
CI: true

# Build and publish to npm
- name: Build and release
if: "!github.event.release.prerelease"
Expand All @@ -42,8 +46,11 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
CI: true
# Upload artifacts

# Upload UMD and translations
- run: cp packages/server/translations/ packages/lib/dist/umd -r
- uses: actions/upload-artifact@v4
with:
name: dist
path: packages/lib/dist
name: umd-and-translations
path: packages/lib/dist/umd

2 changes: 1 addition & 1 deletion packages/e2e-playwright/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
"webpack-dev-server": "4.15.1"
},
"dependencies": {
"@adyen/adyen-web": "6.0.0-alpha.4"
"@adyen/adyen-web": "6.0.0-alpha.5"
}
}
2 changes: 1 addition & 1 deletion packages/e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@
"whatwg-fetch": "^3.6.2"
},
"dependencies": {
"@adyen/adyen-web": "6.0.0-alpha.4"
"@adyen/adyen-web": "6.0.0-alpha.5"
}
}
2 changes: 1 addition & 1 deletion packages/lib/config/rollup.plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const compileCSS = ({ extract = 'adyen.css' } = {}) =>
config: {
path: 'postcss.config.cjs'
},
sourceMap: false,
sourceMap: true,
inject: false,
extract: extract
});
Expand Down
7 changes: 4 additions & 3 deletions packages/lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@adyen/adyen-web",
"version": "6.0.0-alpha.4",
"version": "6.0.0-alpha.5",
"license": "MIT",
"homepage": "https://docs.adyen.com/checkout",
"type": "module",
Expand Down Expand Up @@ -50,8 +50,9 @@
},
"files": [
"auto/**",
"dist/**",
"translations/**",
"dist/cjs/**",
"dist/es/**",
"dist/es-legacy/**",
"LICENSE",
"README"
],
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@
"whatwg-fetch": "^3.6.2"
},
"dependencies": {
"@adyen/adyen-web": "6.0.0-alpha.4"
"@adyen/adyen-web": "6.0.0-alpha.5"
}
}

0 comments on commit 129241a

Please sign in to comment.