Skip to content

Commit 7189ad9

Browse files
author
mohit23x
committed
fix deployments
1 parent bc6d159 commit 7189ad9

5 files changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
jobs:
1010
publish:
1111
runs-on: ubuntu-latest
12+
if: startsWith(github.ref, 'refs/tags/v') || (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')
1213
steps:
1314
- uses: actions/checkout@v4
1415
- name: Use Node.js 20.x
@@ -33,10 +34,11 @@ jobs:
3334
uses: JS-DevTools/npm-publish@v3
3435
with:
3536
token: ${{ secrets.NPM_TOKEN }}
37+
check-version: true
38+
greater-version-only: true
3639

3740
deploy-example:
3841
runs-on: ubuntu-latest
39-
needs: publish
4042
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v')
4143
steps:
4244
- uses: actions/checkout@v4
@@ -63,3 +65,4 @@ jobs:
6365
publish_branch: gh-pages
6466
user_name: github-actions[bot]
6567
user_email: github-actions[bot]@users.noreply.github.com
68+
enable_jekyll: false

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
![demo gif](https://s7.gifyu.com/images/demo_action_sheet.gif)
2424

25-
[Live Demo](https://actionsheet-react-demo.vercel.app) | [CodeSandbox](https://codesandbox.io/s/actionsheet-react-v2-demo)
25+
[Live Demo](https://mohit23x.github.io/actionsheet-react) | [CodeSandbox](https://codesandbox.io/s/actionsheet-react-v2-demo)
2626

2727
## 📦 Installation
2828

example/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "actionsheet-react-example",
33
"version": "0.1.0",
44
"private": true,
5+
"homepage": "https://mohit23x.github.io/actionsheet-react",
56
"dependencies": {
67
"@testing-library/dom": "^10.4.0",
78
"@testing-library/jest-dom": "^6.6.3",

example/public/.nojekyll

Whitespace-only changes.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "actionsheet-react",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "🌟A lightweight and flexible action sheet component for the web",
55
"main": "build/index.js",
66
"module": "build/index.es.js",

0 commit comments

Comments
 (0)