File tree 4 files changed +16
-36
lines changed
4 files changed +16
-36
lines changed Original file line number Diff line number Diff line change 22
22
23
23
- name : Build
24
24
run : yarn build
25
-
26
- deploy-page :
27
- needs : build
28
- runs-on : ubuntu-latest
29
-
30
- environment :
31
- name : github-pages
32
- url : ${{ steps.deployment.outputs.page_url }}
33
-
34
- defaults :
35
- run :
36
- working-directory : gh-pages
37
-
38
- permissions :
39
- contents : read
40
- pages : write
41
- id-token : write
42
-
43
- steps :
44
- - uses : actions/checkout@v4
45
-
46
- - name : Install + Build
47
- run : docker-compose up page-build
48
-
49
- - name : Upload artifact
50
- uses : actions/upload-pages-artifact@v1
51
- with :
52
- path : gh-pages/out
53
-
54
- - name : Deploy to GitHub Pages
55
- id : deployment
56
- uses : actions/deploy-pages@v2
Original file line number Diff line number Diff line change @@ -91,14 +91,26 @@ jobs:
91
91
steps :
92
92
- uses : actions/checkout@v4
93
93
94
+ - name : Wait for npm package to be available
95
+ run : |
96
+ PACKAGE_NAME="@ifrc-go/icons"
97
+ PACKAGE_VERSION=$(cat package.json | grep version | grep -oP "(\d+\.)?(\d+\.)?(\*|\d+)")
98
+
99
+ # Loop until the package is available in the registry
100
+ while [[ -z $(npm show "$PACKAGE_NAME@$PACKAGE_VERSION" version) ]]; do
101
+ echo "Waiting for npm package to be available..."
102
+ sleep 20 # Adjust the interval as needed
103
+ done
104
+ echo "npm package is available!"
105
+
94
106
- name : Install + Build
95
107
run : docker-compose up page-build
96
108
97
109
- name : Upload artifact
98
- uses : actions/upload-pages-artifact@v1
110
+ uses : actions/upload-pages-artifact@v3
99
111
with :
100
112
path : gh-pages/out
101
113
102
114
- name : Deploy to GitHub Pages
103
115
id : deployment
104
- uses : actions/deploy-pages@v2
116
+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 10
10
"lint" : " next lint"
11
11
},
12
12
"dependencies" : {
13
- "@ifrc-go/icons" : " ^1.3.1 " ,
13
+ "@ifrc-go/icons" : " ^1.3.2 " ,
14
14
"@types/node" : " 20.2.5" ,
15
15
"@types/react" : " 18.2.7" ,
16
16
"@types/react-dom" : " 18.2.4" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @ifrc-go/icons" ,
3
- "version" : " 1.3.1 " ,
3
+ "version" : " 1.3.2 " ,
4
4
"description" : " IFRC-GO icons library for React." ,
5
5
"keywords" : [
6
6
" ifrc-go" ,
You can’t perform that action at this time.
0 commit comments