Skip to content

Commit

Permalink
Update build pipeline and enhance functionality
Browse files Browse the repository at this point in the history
- Changed the build pipeline to use Rollup
- Updated dependencies
- Automatically add the CDN script if not already present
- Updated types, including handling `window.Frames` being potentially undefined
- Added deprecation warning for future migration to Flow
  • Loading branch information
ioan-ghisoi-cko committed Nov 19, 2024
1 parent 2d7c159 commit 325ebe6
Show file tree
Hide file tree
Showing 46 changed files with 6,275 additions and 46,424 deletions.
73 changes: 46 additions & 27 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,51 @@
name: Deploy

on:
push:
branches:
- master
push:
branches:
- master

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/[email protected]
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- run: npm ci --force
- run: npm test

publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- run: npm ci --force
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
test:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: 18
registry-url: https://registry.npmjs.org/

- name: Install Dependencies
run: npm ci --force

- name: Run Tests
run: npm test

publish-npm:
needs: test
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: 18
registry-url: https://registry.npmjs.org/

- name: Install Dependencies
run: npm ci --force

- name: Build Project
run: npm run build

- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
33 changes: 22 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,26 @@
name: Test

on: [push]
on:
push:
branches:
- "**"

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/[email protected]
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- run: npm ci --force
- run: npm test
test:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: 18
registry-url: https://registry.npmjs.org/

- name: Install Dependencies
run: npm ci --force

- name: Run Tests
run: npm test
7 changes: 2 additions & 5 deletions .gitignore
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@
/.pnp
.pnp.js

# testing
/coverage

# production
/build
/dist

# misc
.DS_Store
Expand All @@ -21,4 +18,4 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*

example/
9 changes: 0 additions & 9 deletions .npmignore

This file was deleted.

7 changes: 0 additions & 7 deletions .prettierrc

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 Checkout.com
Copyright (c) 2025 Checkout.com

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading

0 comments on commit 325ebe6

Please sign in to comment.