@@ -17,12 +17,22 @@ jobs:
17
17
git config --global user.name "JeremyDolle"
18
18
git config --global user.email "[email protected] "
19
19
npm version ${{ github.event.release.tag_name }}
20
- - run : yarn ci --omit=dev --ignore-scripts
20
+ - name : Install dependencies
21
+ run : |
22
+ if [ -e yarn.lock ]; then
23
+ yarn install --frozen-lockfile
24
+ elif [ -e package-lock.json ]; then
25
+ npm ci
26
+ else
27
+ npm i
28
+ fi
21
29
- uses : JS-DevTools/npm-publish@v1
22
30
with :
23
31
token : ${{ secrets.NPM_TOKEN }}
24
- - run : git commit -am "🏷️(version) Update boilerplate to version ${{ github.event.release.tag_name }}"
25
- - run : git push
32
+ - name : Commit and push
33
+ run : |
34
+ git commit -am "🏷️(version) Update boilerplate to version ${{ github.event.release.tag_name }}"
35
+ git push
26
36
env :
27
37
github-token : ${{ secrets.GITHUB_TOKEN }}
28
38
publish-candidate :
@@ -37,12 +47,22 @@ jobs:
37
47
git config --global user.name "JeremyDolle"
38
48
git config --global user.email "[email protected] "
39
49
npm version ${{ github.event.release.tag_name }}
40
- - run : yarn ci --omit=dev --ignore-scripts
50
+ - name : Install dependencies
51
+ run : |
52
+ if [ -e yarn.lock ]; then
53
+ yarn install --frozen-lockfile
54
+ elif [ -e package-lock.json ]; then
55
+ npm ci
56
+ else
57
+ npm i
58
+ fi
41
59
- uses : JS-DevTools/npm-publish@v1
42
60
with :
43
61
token : ${{ secrets.NPM_TOKEN }}
44
62
tag : ${{ github.event.release.tag_name }}
45
- - run : git commit -am "🏷️(version) Update boilerplate to rc version ${{ github.event.release.tag_name }}"
46
- - run : git push
63
+ - name : Commit and push
64
+ run : |
65
+ git commit -am "🏷️(version) Update boilerplate to rc version ${{ github.event.release.tag_name }}"
66
+ git push
47
67
env :
48
68
github-token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments