Skip to content

Commit

Permalink
Merge branch 'main' into feat/react-animation-id-prop
Browse files Browse the repository at this point in the history
  • Loading branch information
theashraf authored Jun 24, 2024
2 parents a90b1d4 + c19603b commit 9907d8f
Show file tree
Hide file tree
Showing 5 changed files with 13,038 additions and 10,766 deletions.
73 changes: 60 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ jobs:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4

- name: ⎔ Setup pnpm@v8
- name: ⎔ Setup pnpm@v9
uses: pnpm/action-setup@v2
with:
version: 8
version: 9

- name: ⎔ Setup Node@v18
- name: ⎔ Setup Node@v20
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20

- name: 📥 Download deps
run: pnpm install
Expand Down Expand Up @@ -58,8 +58,8 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

release:
name: release
npm-release:
name: npm-release
needs: validate
runs-on: ubuntu-latest
if: ${{ github.repository == 'LottieFiles/dotlottie-web' && github.event_name == 'push' }}
Expand All @@ -71,16 +71,16 @@ jobs:
# check out all commits and tags so changeset can skip duplicate tags
fetch-depth: 0

- name: ⎔ Setup pnpm@v8
- name: ⎔ Setup pnpm@v9
uses: pnpm/action-setup@v2
with:
version: 8
version: 9

- name: ⎔ Setup Node@v18
- name: ⎔ Setup Node@v20
uses: actions/setup-node@v4
with:
cache: 'pnpm'
node-version: 18
node-version: 20
registry-url: 'https://registry.npmjs.org'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -108,11 +108,27 @@ jobs:
- name: Remove existing NPM .npmrc
run: rm -f "$HOME/.npmrc"

- name: ⎔ Setup Node@v18 for Github Packages
gpr-release:
name: gpr-release
needs: validate
runs-on: ubuntu-latest
if: ${{ github.repository == 'LottieFiles/dotlottie-web' && github.event_name == 'push' }}
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: ⎔ Setup pnpm@v9
uses: pnpm/action-setup@v2
with:
version: 9

- name: ⎔ Setup Node@v20
uses: actions/setup-node@v4
with:
cache: 'pnpm'
node-version: 18
node-version: 20
registry-url: 'https://npm.pkg.github.com/'

- name: 📥 Install dependencies
Expand All @@ -132,7 +148,38 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets. NPM_TOKEN }}

- name: 🌐Publish dotLottie-viewer
publish-viewer:
name: publish-viewer
needs: validate
runs-on: ubuntu-latest
if: ${{ github.repository == 'LottieFiles/dotlottie-web' && github.event_name == 'push' }}
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: ⎔ Setup pnpm@v9
uses: pnpm/action-setup@v2
with:
version: 9

- name: ⎔ Setup Node@v20
uses: actions/setup-node@v4
with:
cache: 'pnpm'
node-version: 20
registry-url: 'https://npm.pkg.github.com/'

- name: 📥 Install dependencies
run: pnpm install
env:
NODE_AUTH_TOKEN: ${{ secrets.GPR_TOKEN }}

- name: 🏗 Build
run: pnpm build

- name: 🌐Publish
if: success()
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down
5 changes: 5 additions & 0 deletions .size-limit.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,9 @@ module.exports = [
return config;
},
},
{
name: '@lottiefiles/dotlottie-solid',
path: 'packages/solid/dist/index.js',
import: '*',
},
];
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,27 +34,27 @@
"type-check": "turbo run type-check"
},
"devDependencies": {
"@changesets/cli": "2.26.2",
"@changesets/cli": "2.27.5",
"@commitlint/cli": "17.6.1",
"@lottiefiles/commitlint-config": "2.0.0",
"@lottiefiles/eslint-plugin": "3.0.0",
"@lottiefiles/prettier-config": "3.0.0",
"@lottiefiles/remark-preset": "1.0.0",
"@lottiefiles/tsconfig": "2.0.0",
"@size-limit/preset-big-lib": "^11.0.2",
"@size-limit/preset-big-lib": "^11.1.4",
"cross-env": "7.0.3",
"eslint": "7.32.0",
"husky": "8.0.3",
"lint-staged": "13.2.1",
"npm-check-updates": "16.10.9",
"prettier": "2.8.8",
"remark-cli": "11.0.0",
"size-limit": "^11.0.2",
"size-limit": "^11.1.4",
"svelte-loader": "^3.2.3",
"syncpack": "9.8.6",
"turbo": "1.10.16",
"turbo": "2.0.4",
"typescript": "5.0.4",
"zx": "7.0.7"
},
"packageManager": "pnpm@8.10.3"
"packageManager": "pnpm@9.4.0"
}
Loading

0 comments on commit 9907d8f

Please sign in to comment.