Skip to content

Commit

Permalink
chore: added dual deployment
Browse files Browse the repository at this point in the history
chore: added changesets
  • Loading branch information
samuelOsborne committed Apr 27, 2022
1 parent 905f874 commit a6337cf
Show file tree
Hide file tree
Showing 8 changed files with 797 additions and 2,319 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": []
}
56 changes: 46 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,22 @@ name: Release

on:
push:
branches: [master, beta]
branches: [master]

jobs:
release:
name: Release

build:
runs-on: ubuntu-latest
timeout-minutes: 15

strategy:
matrix:
node-version: [12.x]
node-version: [14.x]

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Cache NPM
uses: actions/cache@v2
env:
Expand All @@ -29,14 +27,16 @@ jobs:
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://npm.pkg.github.com'

- name: Install dependencies
run: yarn install && npx playwright install
run:
yarn install && npx playwright install
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Expand All @@ -54,14 +54,50 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Release
run: yarn release
release-npm:
needs: build
name: Release npm
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/
- run: yarn install --frozen-lockfile
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPMJS_TOKEN }}
GIT_COMMIT: ${{ github.sha }}
GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }}
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
GIT_COMMITTER_NAME: ${{ secrets.GIT_COMMITTER_NAME }}
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }}

release-gpr:
needs: build
name: Release gpr
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
registry-url: https://npm.pkg.github.com/
scope: '@lottiefiles'
- run: yarn install --frozen-lockfile
- run:
echo "//npm.pkg.github.com:_authToken=${{ secrets.GITHUB_TOKEN }}" >
~/.npmrc
- run: npm publish --@lottiefiles:registry=https://npm.pkg.github.com/
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPMJS_TOKEN }}
GIT_COMMIT: ${{ github.sha }}
GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }}
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
GIT_COMMITTER_NAME: ${{ secrets.GIT_COMMITTER_NAME }}
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }}
58 changes: 0 additions & 58 deletions .github/workflows/tests.yml

This file was deleted.

121 changes: 70 additions & 51 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,139 +1,158 @@
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html), enforced with [semantic-release](https://github.com/semantic-release/semantic-release).

## 1.5.1

## [1.5.1](https://github.com/LottieFiles/lottie-interactivity/compare/v1.5.0...v1.5.1) (2022-04-26)
### Patch Changes

- added changesets All notable changes to this project will be documented in this file. The format is based on
[Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html), enforced with
[semantic-release](https://github.com/semantic-release/semantic-release).

## [1.5.1](https://github.com/LottieFiles/lottie-interactivity/compare/v1.5.0...v1.5.1) (2022-04-26)

### Bug Fixes

* fixed autoplay not being removed after onComplete transition ([c2ba40d](https://github.com/LottieFiles/lottie-interactivity/commit/c2ba40d5553133c9dd56c06508338ef6d853ba1a))
* fixed forceflag not working on click ([fc4f818](https://github.com/LottieFiles/lottie-interactivity/commit/fc4f8183de8aa40b86aa42fd884eb1ce5148264e))
- fixed autoplay not being removed after onComplete transition
([c2ba40d](https://github.com/LottieFiles/lottie-interactivity/commit/c2ba40d5553133c9dd56c06508338ef6d853ba1a))
- fixed forceflag not working on click
([fc4f818](https://github.com/LottieFiles/lottie-interactivity/commit/fc4f8183de8aa40b86aa42fd884eb1ce5148264e))

# [1.5.0](https://github.com/LottieFiles/lottie-interactivity/compare/v1.4.0...v1.5.0) (2022-04-12)


### Features

* added jumptToInteraction method ([8def8b5](https://github.com/LottieFiles/lottie-interactivity/commit/8def8b503aad95c8156d729057b896c93dd32d66))
- added jumptToInteraction method
([8def8b5](https://github.com/LottieFiles/lottie-interactivity/commit/8def8b503aad95c8156d729057b896c93dd32d66))

# [1.4.0](https://github.com/LottieFiles/lottie-interactivity/compare/v1.3.8...v1.4.0) (2022-04-12)


### Features

* made nextInteraction method public ([642a64d](https://github.com/LottieFiles/lottie-interactivity/commit/642a64dc97c8a1eda969f3d7c3cf2e30bc0b9451))
- made nextInteraction method public
([642a64d](https://github.com/LottieFiles/lottie-interactivity/commit/642a64dc97c8a1eda969f3d7c3cf2e30bc0b9451))

## [1.3.8](https://github.com/LottieFiles/lottie-interactivity/compare/v1.3.7...v1.3.8) (2022-03-16)


### Bug Fixes

* added fixes to click and hold transitions ([43eb8c5](https://github.com/LottieFiles/lottie-interactivity/commit/43eb8c514e29369535b4c2906976717399d86e51))
- added fixes to click and hold transitions
([43eb8c5](https://github.com/LottieFiles/lottie-interactivity/commit/43eb8c514e29369535b4c2906976717399d86e51))

## [1.3.7](https://github.com/LottieFiles/lottie-interactivity/compare/v1.3.6...v1.3.7) (2022-03-07)


### Bug Fixes

* fixed container null issue on wordpress ([fa0e5e7](https://github.com/LottieFiles/lottie-interactivity/commit/fa0e5e7b2128cf1c59cd7aa3385d43d535f72a8b))
- fixed container null issue on wordpress
([fa0e5e7](https://github.com/LottieFiles/lottie-interactivity/commit/fa0e5e7b2128cf1c59cd7aa3385d43d535f72a8b))

## [1.3.6](https://github.com/LottieFiles/lottie-interactivity/compare/v1.3.5...v1.3.6) (2022-02-21)


### Bug Fixes

* fixed error when player is destroyed and redefineOptions is called ([7d2c4e3](https://github.com/LottieFiles/lottie-interactivity/commit/7d2c4e31db3bca7fde206c9c77debaaeebcd6b3c))
- fixed error when player is destroyed and redefineOptions is called
([7d2c4e3](https://github.com/LottieFiles/lottie-interactivity/commit/7d2c4e31db3bca7fde206c9c77debaaeebcd6b3c))

## [1.3.5](https://github.com/LottieFiles/lottie-interactivity/compare/v1.3.4...v1.3.5) (2022-02-17)


### Bug Fixes

* added usecapture to scroll listener ([763cc37](https://github.com/LottieFiles/lottie-interactivity/commit/763cc37d471c13792a86a57aedd271f137f9d836))
* changed way window is used ([9a6e7b9](https://github.com/LottieFiles/lottie-interactivity/commit/9a6e7b9a5efcb0dd3cb7fe23b89d2cfbe110e5ac))
- added usecapture to scroll listener
([763cc37](https://github.com/LottieFiles/lottie-interactivity/commit/763cc37d471c13792a86a57aedd271f137f9d836))
- changed way window is used
([9a6e7b9](https://github.com/LottieFiles/lottie-interactivity/commit/9a6e7b9a5efcb0dd3cb7fe23b89d2cfbe110e5ac))

## [1.3.4](https://github.com/LottieFiles/lottie-interactivity/compare/v1.3.3...v1.3.4) (2022-02-01)


### Bug Fixes

* **scrolling:** fixed segments not playing on scroll with 'play' action type ([9d360c7](https://github.com/LottieFiles/lottie-interactivity/commit/9d360c790dcd912b770412bf473f3e6d4aec1269))
- **scrolling:** fixed segments not playing on scroll with 'play' action type
([9d360c7](https://github.com/LottieFiles/lottie-interactivity/commit/9d360c790dcd912b770412bf473f3e6d4aec1269))

## [1.3.3](https://github.com/LottieFiles/lottie-interactivity/compare/v1.3.2...v1.3.3) (2022-01-25)


### Bug Fixes

* added init methods when domloaded event has already fires ([a6f4c89](https://github.com/LottieFiles/lottie-interactivity/commit/a6f4c892557a50d70ecd27d99fa37b86c8a2bce8))
- added init methods when domloaded event has already fires
([a6f4c89](https://github.com/LottieFiles/lottie-interactivity/commit/a6f4c892557a50d70ecd27d99fa37b86c8a2bce8))

## [1.3.2](https://github.com/LottieFiles/lottie-interactivity/compare/v1.3.1...v1.3.2) (2022-01-10)


### Bug Fixes

* **interactions:** added additional comments ([5a77a9c](https://github.com/LottieFiles/lottie-interactivity/commit/5a77a9c9169886846acc62ffebde48e0c3ace064))
* **interactions:** added mobile support for interactions ([b8e3a9e](https://github.com/LottieFiles/lottie-interactivity/commit/b8e3a9e1c87683559b301dd3d364fb49154c4092))
- **interactions:** added additional comments
([5a77a9c](https://github.com/LottieFiles/lottie-interactivity/commit/5a77a9c9169886846acc62ffebde48e0c3ace064))
- **interactions:** added mobile support for interactions
([b8e3a9e](https://github.com/LottieFiles/lottie-interactivity/commit/b8e3a9e1c87683559b301dd3d364fb49154c4092))

## [1.3.1](https://github.com/LottieFiles/lottie-interactivity/compare/v1.3.0...v1.3.1) (2022-01-05)


### Bug Fixes

* **stop method:** corrected remove event listener ([7c148ad](https://github.com/LottieFiles/lottie-interactivity/commit/7c148ad117a0400087c6edf37c346a37ac59eaf0))
* **sync to cursor:** added touchmove listener to sync animation for touch screens ([88cf1b3](https://github.com/LottieFiles/lottie-interactivity/commit/88cf1b3e4973d19e169b708eebde473389864dad))
- **stop method:** corrected remove event listener
([7c148ad](https://github.com/LottieFiles/lottie-interactivity/commit/7c148ad117a0400087c6edf37c346a37ac59eaf0))
- **sync to cursor:** added touchmove listener to sync animation for touch screens
([88cf1b3](https://github.com/LottieFiles/lottie-interactivity/commit/88cf1b3e4973d19e169b708eebde473389864dad))

# [1.3.0](https://github.com/LottieFiles/lottie-interactivity/compare/v1.2.0...v1.3.0) (2021-12-08)


### Features

* **cursor mode:** added toggle interaction ([e66b74c](https://github.com/LottieFiles/lottie-interactivity/commit/e66b74cd242b21e85212815d24f0cb193d63c4c5))
- **cursor mode:** added toggle interaction
([e66b74c](https://github.com/LottieFiles/lottie-interactivity/commit/e66b74cd242b21e85212815d24f0cb193d63c4c5))

# [1.2.0](https://github.com/LottieFiles/lottie-interactivity/compare/v1.1.0...v1.2.0) (2021-11-10)


### Bug Fixes

* **click handler:** fixed faulty call to click handler ([69d5b67](https://github.com/LottieFiles/lottie-interactivity/commit/69d5b67c2e3c62f8921667007cf22b4da9875fc8))

- **click handler:** fixed faulty call to click handler
([69d5b67](https://github.com/LottieFiles/lottie-interactivity/commit/69d5b67c2e3c62f8921667007cf22b4da9875fc8))

### Features

* **additional chain properties:** added speed and delay ([b1f5db3](https://github.com/LottieFiles/lottie-interactivity/commit/b1f5db321afb22c82d7bd46ed0171966c0dadd6c))
* **animation loading:** added animation loading for when the library is passed an animation object ([e04600d](https://github.com/LottieFiles/lottie-interactivity/commit/e04600d21c753130938587f8ec0b1976b9b4eecb))
* **global:** first draft of interaction chaining ([672b0e8](https://github.com/LottieFiles/lottie-interactivity/commit/672b0e8a91f1d48584a3bbee7c045604e27cf06b))
* **interactions:** added ability to load lotties in interaction chaining from 'path' attribute ([db3af11](https://github.com/LottieFiles/lottie-interactivity/commit/db3af11c2cf87dc5374b3fbe5f88599106e82bf9))
* **interactions:** added click and hover states, updated example page ([853eff2](https://github.com/LottieFiles/lottie-interactivity/commit/853eff283248949be48bf81a5618eba08dcb1806))
* **interactions:** Added click, hover and visible interactions ([d97fbad](https://github.com/LottieFiles/lottie-interactivity/commit/d97fbad110a7e50ed829c7e3fafe92edbacff648))
* **interactions:** added jumpTo property to get to a specific interaction index after transition ([b3a82f4](https://github.com/LottieFiles/lottie-interactivity/commit/b3a82f45f80f7cd7a1a87bb5658b28f24a05c1ca))
* **interactions:** added sync to cursor to interaction chaining ([67331c3](https://github.com/LottieFiles/lottie-interactivity/commit/67331c3ee1f03bb3527d3552aebcc4558ba984e4))
* **interactions chaining:** added dynamic loading of animations, finished examples page ([60003f4](https://github.com/LottieFiles/lottie-interactivity/commit/60003f4d3951d8e287bcadbe237f39e9e4f183f2))
- **additional chain properties:** added speed and delay
([b1f5db3](https://github.com/LottieFiles/lottie-interactivity/commit/b1f5db321afb22c82d7bd46ed0171966c0dadd6c))
- **animation loading:** added animation loading for when the library is passed an animation object
([e04600d](https://github.com/LottieFiles/lottie-interactivity/commit/e04600d21c753130938587f8ec0b1976b9b4eecb))
- **global:** first draft of interaction chaining
([672b0e8](https://github.com/LottieFiles/lottie-interactivity/commit/672b0e8a91f1d48584a3bbee7c045604e27cf06b))
- **interactions:** added ability to load lotties in interaction chaining from 'path' attribute
([db3af11](https://github.com/LottieFiles/lottie-interactivity/commit/db3af11c2cf87dc5374b3fbe5f88599106e82bf9))
- **interactions:** added click and hover states, updated example page
([853eff2](https://github.com/LottieFiles/lottie-interactivity/commit/853eff283248949be48bf81a5618eba08dcb1806))
- **interactions:** Added click, hover and visible interactions
([d97fbad](https://github.com/LottieFiles/lottie-interactivity/commit/d97fbad110a7e50ed829c7e3fafe92edbacff648))
- **interactions:** added jumpTo property to get to a specific interaction index after transition
([b3a82f4](https://github.com/LottieFiles/lottie-interactivity/commit/b3a82f45f80f7cd7a1a87bb5658b28f24a05c1ca))
- **interactions:** added sync to cursor to interaction chaining
([67331c3](https://github.com/LottieFiles/lottie-interactivity/commit/67331c3ee1f03bb3527d3552aebcc4558ba984e4))
- **interactions chaining:** added dynamic loading of animations, finished examples page
([60003f4](https://github.com/LottieFiles/lottie-interactivity/commit/60003f4d3951d8e287bcadbe237f39e9e4f183f2))

# [1.1.0](https://github.com/LottieFiles/lottie-interactivity/compare/v1.0.0...v1.1.0) (2021-09-28)


### Bug Fixes

* **scroll:** use start/end frames in seeking ([71f2197](https://github.com/LottieFiles/lottie-interactivity/commit/71f21973334f92e71323a1aa837902ce5b7d406a))

- **scroll:** use start/end frames in seeking
([71f2197](https://github.com/LottieFiles/lottie-interactivity/commit/71f21973334f92e71323a1aa837902ce5b7d406a))

### Features

* **scroll:** reset frame count from loop to seek ([270b621](https://github.com/LottieFiles/lottie-interactivity/commit/270b6216ffd76ec4bfa2d59457c83748bae8e3d7))
- **scroll:** reset frame count from loop to seek
([270b621](https://github.com/LottieFiles/lottie-interactivity/commit/270b6216ffd76ec4bfa2d59457c83748bae8e3d7))

# 1.0.0 (2021-08-10)


### Bug Fixes

* **examples:** fix a missing and misplaced comma in examples ([a922b79](https://github.com/LottieFiles/lottie-interactivity/commit/a922b7906383c43ea76f365d52c99a71b8e8989f))
* **scroll:** with 'scroll' mode and type as 'play' plays animation once and pauses at end ([e9ff742](https://github.com/LottieFiles/lottie-interactivity/commit/e9ff74240d1faf6b4385d3f70fd1fa4a8cc81b8d))
- **examples:** fix a missing and misplaced comma in examples
([a922b79](https://github.com/LottieFiles/lottie-interactivity/commit/a922b7906383c43ea76f365d52c99a71b8e8989f))
- **scroll:** with 'scroll' mode and type as 'play' plays animation once and pauses at end
([e9ff742](https://github.com/LottieFiles/lottie-interactivity/commit/e9ff74240d1faf6b4385d3f70fd1fa4a8cc81b8d))

# 1.0.0 (2021-06-29)


### Bug Fixes

* **scroll:** with 'scroll' mode and type as 'play' plays animation once and pauses at end ([e9ff742](https://github.com/LottieFiles/lottie-interactivity/commit/e9ff74240d1faf6b4385d3f70fd1fa4a8cc81b8d))
- **scroll:** with 'scroll' mode and type as 'play' plays animation once and pauses at end
([e9ff742](https://github.com/LottieFiles/lottie-interactivity/commit/e9ff74240d1faf6b4385d3f70fd1fa4a8cc81b8d))
Loading

0 comments on commit a6337cf

Please sign in to comment.