@@ -18,11 +18,22 @@ jobs:
1818 with :
1919 token : ${{ secrets.HUB_TOKEN }}
2020
21+ - name : Upload repository files
22+ uses : actions/upload-artifact@v3
23+ with :
24+ name : repo-files
25+ path : .
26+
2127 setup-node :
2228 runs-on : ubuntu-latest
2329 needs : checkout
2430
2531 steps :
32+ - name : Download repository files
33+ uses : actions/download-artifact@v3
34+ with :
35+ name : repo-files
36+
2637 - name : Set up Node.js
2738 uses : actions/setup-node@v3
2839 with :
3445 needs : setup-node
3546
3647 steps :
48+ - name : Download repository files
49+ uses : actions/download-artifact@v3
50+ with :
51+ name : repo-files
52+
3753 - name : Install dependencies
3854 run : npm install
3955
@@ -42,26 +58,45 @@ jobs:
4258 needs : install
4359
4460 steps :
61+ - name : Download repository files
62+ uses : actions/download-artifact@v3
63+ with :
64+ name : repo-files
65+
4566 - name : Get short commit hash
46- id : get_hash
4767 run : echo "HASH=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
4868
4969 update-version :
5070 runs-on : ubuntu-latest
5171 needs : get-hash
5272
5373 steps :
74+ - name : Download repository files
75+ uses : actions/download-artifact@v3
76+ with :
77+ name : repo-files
78+
5479 - name : Update version
5580 run : |
5681 VERSION="0.0.1-alpha.${{ env.HASH }}"
5782 jq --arg ver "$VERSION" '.version = $ver' package.json > tmp.json && mv tmp.json package.json
5883 echo "VERSION=$VERSION" >> $GITHUB_ENV
84+ - name : Upload updated package.json
85+ uses : actions/upload-artifact@v3
86+ with :
87+ name : updated-files
88+ path : package.json
5989
6090 build :
6191 runs-on : ubuntu-latest
6292 needs : update-version
6393
6494 steps :
95+ - name : Download updated files
96+ uses : actions/download-artifact@v3
97+ with :
98+ name : updated-files
99+
65100 - name : Build package
66101 run : npm run make
67102
@@ -70,6 +105,11 @@ jobs:
70105 needs : build
71106
72107 steps :
108+ - name : Download updated files
109+ uses : actions/download-artifact@v3
110+ with :
111+ name : updated-files
112+
73113 - name : Run tests
74114 run : npm test
75115
@@ -78,6 +118,11 @@ jobs:
78118 needs : test
79119
80120 steps :
121+ - name : Download updated files
122+ uses : actions/download-artifact@v3
123+ with :
124+ name : updated-files
125+
81126 - name : Run coverage
82127 run : npm run coverage
83128
@@ -86,6 +131,11 @@ jobs:
86131 needs : coverage
87132
88133 steps :
134+ - name : Download updated files
135+ uses : actions/download-artifact@v3
136+ with :
137+ name : updated-files
138+
89139 - name : Create Git tag
90140 run : |
91141 git config --local user.name "github-actions[bot]"
@@ -98,6 +148,11 @@ jobs:
98148 needs : tag
99149
100150 steps :
151+ - name : Download updated files
152+ uses : actions/download-artifact@v3
153+ with :
154+ name : updated-files
155+
101156 - name : Create GitHub Release
102157 uses : actions/create-release@v1
103158 env :
@@ -113,6 +168,11 @@ jobs:
113168 needs : release
114169
115170 steps :
171+ - name : Download updated files
172+ uses : actions/download-artifact@v3
173+ with :
174+ name : updated-files
175+
116176 - name : Publish to npm
117177 env :
118178 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
0 commit comments