File tree Expand file tree Collapse file tree 1 file changed +9
-22
lines changed
Expand file tree Collapse file tree 1 file changed +9
-22
lines changed Original file line number Diff line number Diff line change 1111 - develop
1212
1313jobs :
14- prepush -and-build :
14+ build -and-publish :
1515 runs-on : ubuntu-latest
1616 steps :
17- - uses : actions/checkout@v1
18- - uses : actions/setup-node@v1
17+ - uses : actions/checkout@v2
18+ - uses : actions/setup-node@v2
1919 with :
2020 node-version : 16
21+ registry-url : ' https://registry.npmjs.org'
2122 - name : Yarn install
2223 run : yarn install
2324 - name : Runing prepush
2425 run : yarn run pre-push
25- - name : Archive production artifacts
26- uses : actions/upload-artifact@v1
27- with :
28- name : dist
29- path : dist
30-
31- publish :
32- needs : prepush-and-build
33- runs-on : ubuntu-latest
34- steps :
35- - uses : actions/checkout@v2
36- - uses : actions/setup-node@v2
37- with :
38- node-version : 16
39- registry-url : ' https://registry.npmjs.org'
40- - name : Download 'dist' from the previous Job
41- uses : actions/download-artifact@v1
42- with :
43- name : dist
4426 - name : Set GIT username & email
4527 run : git config --global user.name 'GIT Workflow CI' && git config --global user.email dev@korniychuk.pro
4628 - run : npm version patch -m 'Update package version version to %s'
4729 - name : Generate public package.json
4830 run : yarn run gen-public-package.json
4931 - name : Generate public README.md
5032 run : cp README.md dist/
33+ - name : Archive production artifacts
34+ uses : actions/upload-artifact@v1
35+ with :
36+ name : dist
37+ path : dist
5138 - run : npm publish --access public
5239 working-directory : ./dist
5340 env :
You can’t perform that action at this time.
0 commit comments