Skip to content

Commit a8645fd

Browse files
Merge pull request #17 from LottieFiles/fix/release-workflow
Fix/release-workflow
2 parents 5af18fc + 45e21a0 commit a8645fd

File tree

4 files changed

+21
-64
lines changed

4 files changed

+21
-64
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,22 @@ jobs:
3636
registry-url: 'https://npm.pkg.github.com'
3737

3838
- name: Install dependencies
39-
run: yarn install
39+
run:
40+
yarn |
41+
cd example && yarn
4042
env:
4143
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4244

45+
- name: Serve example app
46+
continue-on-error: false
47+
run: yarn run serve-app
48+
env:
49+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4350
- name: Build project and run tests
51+
continue-on-error: false
4452
run: yarn run run-tests
53+
env:
54+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4555

4656
- name: Build project
4757
run: yarn build

example/vue.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
devServer: {
3+
progress: false
4+
}
5+
}

example/yarn.lock

Lines changed: 0 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -976,28 +976,6 @@
976976
cssnano-preset-default "^4.0.0"
977977
postcss "^7.0.0"
978978

979-
"@lit/reactive-element@^1.3.0":
980-
version "1.3.0"
981-
resolved "https://registry.yarnpkg.com/@lit/reactive-element/-/reactive-element-1.3.0.tgz#c85c5a5fea41d7230e52fb9017307f473ab947ea"
982-
integrity sha512-0TKSIuJHXNLM0k98fi0AdMIdUoHIYlDHTP+0Vruc2SOs4T6vU1FinXgSvYd8mSrkt+8R+qdRAXvjpqrMXMyBgw==
983-
984-
"@lottiefiles/lottie-player@^1.04":
985-
version "1.5.6"
986-
resolved "https://registry.yarnpkg.com/@lottiefiles/lottie-player/-/lottie-player-1.5.6.tgz#420b8fe9140109182bbc085bd9d7d4af5434694c"
987-
integrity sha512-vhM3U+qGmagfkilGVDL8K3uxUfyFUs5MEyJfJiTi4/QN762jRVnVEZKr5aLMDiNfLrCOe4jkE+GbLifHcGkO8Q==
988-
dependencies:
989-
"@types/pako" "^1.0.1"
990-
lit "^2.1.2"
991-
lottie-web "^5.8.1"
992-
pako "^2.0.4"
993-
resize-observer-polyfill "^1.5.1"
994-
995-
"@lottiefiles/vue-lottie-player@../":
996-
version "1.0.4"
997-
dependencies:
998-
"@lottiefiles/lottie-player" "^1.04"
999-
vue "^2.6.12"
1000-
1001979
"@mrmlnc/readdir-enhanced@^2.2.1":
1002980
version "2.2.1"
1003981
resolved "https://registry.yarnpkg.com/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz#524af240d1a360527b730475ecfa1344aa540dde"
@@ -1146,11 +1124,6 @@
11461124
resolved "https://registry.yarnpkg.com/@types/tapable/-/tapable-1.0.8.tgz#b94a4391c85666c7b73299fd3ad79d4faa435310"
11471125
integrity sha512-ipixuVrh2OdNmauvtT51o3d8z12p6LtFW9in7U79der/kwejjdNchQC5UMn5u/KxNoM7VHHOs/l8KS8uHxhODQ==
11481126

1149-
"@types/trusted-types@^2.0.2":
1150-
version "2.0.2"
1151-
resolved "https://registry.yarnpkg.com/@types/trusted-types/-/trusted-types-2.0.2.tgz#fc25ad9943bcac11cceb8168db4f275e0e72e756"
1152-
integrity sha512-F5DIZ36YVLE+PN+Zwws4kJogq47hNgX3Nx6WyDJ3kcplxyke3XIzB8uK5n/Lpm1HBsbGzd6nmGehL8cPekP+Tg==
1153-
11541127
"@types/uglify-js@*":
11551128
version "3.13.1"
11561129
resolved "https://registry.yarnpkg.com/@types/uglify-js/-/uglify-js-3.13.1.tgz#5e889e9e81e94245c75b6450600e1c5ea2878aea"
@@ -4875,30 +4848,6 @@ lines-and-columns@^1.1.6:
48754848
resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632"
48764849
integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==
48774850

4878-
lit-element@^3.2.0:
4879-
version "3.2.0"
4880-
resolved "https://registry.yarnpkg.com/lit-element/-/lit-element-3.2.0.tgz#9c981c55dfd9a8f124dc863edb62cc529d434db7"
4881-
integrity sha512-HbE7yt2SnUtg5DCrWt028oaU4D5F4k/1cntAFHTkzY8ZIa8N0Wmu92PxSxucsQSOXlODFrICkQ5x/tEshKi13g==
4882-
dependencies:
4883-
"@lit/reactive-element" "^1.3.0"
4884-
lit-html "^2.2.0"
4885-
4886-
lit-html@^2.2.0:
4887-
version "2.2.0"
4888-
resolved "https://registry.yarnpkg.com/lit-html/-/lit-html-2.2.0.tgz#99345d944611e34543cd9f153d8cc3163b8bbab8"
4889-
integrity sha512-dJnevgV8VkCuOXLWrjQopDE8nSy8CzipZ/ATfYQv7z7Dct4abblcKecf50gkIScuwCTzKvRLgvTgV0zzagW4gA==
4890-
dependencies:
4891-
"@types/trusted-types" "^2.0.2"
4892-
4893-
lit@^2.1.2:
4894-
version "2.2.0"
4895-
resolved "https://registry.yarnpkg.com/lit/-/lit-2.2.0.tgz#1b83a2c1e4c5ecf3be785292b1a13e193597f610"
4896-
integrity sha512-FDyxUuczo6cJJY/2Bkgfh1872U4ikUvmK1Cb6+lYC1CW+QOo8CaWXCpvPKFzYsz0ojUxoruBLVrECc7VI2f1dQ==
4897-
dependencies:
4898-
"@lit/reactive-element" "^1.3.0"
4899-
lit-element "^3.2.0"
4900-
lit-html "^2.2.0"
4901-
49024851
loader-runner@^2.3.1, loader-runner@^2.4.0:
49034852
version "2.4.0"
49044853
resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-2.4.0.tgz#ed47066bfe534d7e84c4c7b9998c2a75607d9357"
@@ -4999,11 +4948,6 @@ loglevel@^1.6.8:
49994948
resolved "https://registry.yarnpkg.com/loglevel/-/loglevel-1.8.0.tgz#e7ec73a57e1e7b419cb6c6ac06bf050b67356114"
50004949
integrity sha512-G6A/nJLRgWOuuwdNuA6koovfEV1YpqqAG4pRUlFaz3jj2QNZ8M4vBqnVA+HBTmU/AMNUtlOsMmSpF6NyOjztbA==
50014950

5002-
lottie-web@^5.8.1:
5003-
version "5.8.1"
5004-
resolved "https://registry.yarnpkg.com/lottie-web/-/lottie-web-5.8.1.tgz#807e0af0ad22b59bf867d964eb684cb3368da0ef"
5005-
integrity sha512-9gIizWADlaHC2GCt+D+yNpk5l2clZQFqnVWWIVdY0LnxC/uLa39dYltAe3fcmC/hrZ2IUQ8dLlY0O934Npjs7Q==
5006-
50074951
lower-case@^1.1.1:
50084952
version "1.1.4"
50094953
resolved "https://registry.yarnpkg.com/lower-case/-/lower-case-1.1.4.tgz#9a2cabd1b9e8e0ae993a4bf7d5875c39c42e8eac"
@@ -5684,11 +5628,6 @@ p-try@^2.0.0:
56845628
resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6"
56855629
integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==
56865630

5687-
pako@^2.0.4:
5688-
version "2.0.4"
5689-
resolved "https://registry.yarnpkg.com/pako/-/pako-2.0.4.tgz#6cebc4bbb0b6c73b0d5b8d7e8476e2b2fbea576d"
5690-
integrity sha512-v8tweI900AUkZN6heMU/4Uy4cXRc2AYNRggVmTR+dEncawDJgCdLMximOVA2p4qO57WMynangsfGRb5WD6L1Bg==
5691-
56925631
pako@~1.0.5:
56935632
version "1.0.11"
56945633
resolved "https://registry.yarnpkg.com/pako/-/pako-1.0.11.tgz#6c9599d340d54dfd3946380252a35705a6b992bf"

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@
66
"build": "vue-cli-service build --target lib --name @lottiefiles/vue-lottie-player ./src/index.js && rm ./dist/demo.html",
77
"build-with-coverage": "CODE_COVERAGE=true vue-cli-service build --target lib --name @lottiefiles/vue-lottie-player ./src/index.js && rm ./dist/demo.html",
88
"release": "semantic-release",
9-
"run-tests": "yarn run build-with-coverage && yarn run serve-app && BACK_PID=$! && wait $BACK_PID && yarn run start-cypress; kill $(lsof -t -i:8080)",
10-
"serve-app": "cd example && yarn run serve &",
9+
"run-tests": "yarn run build-with-coverage && yarn run start-cypress",
10+
"postrun-tests": "kill $(lsof -t -i:8080)",
11+
"start-and-run-tests": "yarn run build-with-coverage && yarn run serve-app && BACK_PID=$! && wait $BACK_PID && yarn run start-cypress;",
12+
"poststart-and-run-tests": "kill $(lsof -t -i:8080)",
13+
"serve-app": "cd example && yarn && yarn run serve &",
1114
"start-cypress": "yarn run cypress run"
1215
},
1316
"main": "dist/@lottiefiles/vue-lottie-player.common.js",

0 commit comments

Comments
 (0)