|
5 | 5 | types: [published] |
6 | 6 |
|
7 | 7 | jobs: |
8 | | - publish-release: |
| 8 | + publish: |
9 | 9 | if: "!github.event.release.prerelease" |
10 | 10 | runs-on: ubuntu-latest |
11 | 11 | steps: |
12 | 12 | - uses: actions/checkout@v2 |
13 | | - - name: Update package.json and push |
14 | | - uses: actions/setup-node@v1 |
| 13 | + - uses: actions/setup-node@v1 |
15 | 14 | with: |
16 | 15 | node-version: 14 |
17 | | - - run: npm ci |
18 | 16 | - run: | |
19 | 17 | git config --global user.name "JeremyDolle" |
20 | 18 | git config --global user.email "jeremy.dolle34@gmail.com" |
21 | 19 | npm version ${{ github.event.release.tag_name }} |
22 | | - git commit -am "🏷️(version) Update boilerplate to version ${{ github.event.release.tag_name }}" |
23 | | - - run: git push |
24 | | - env: |
25 | | - github-token: ${{ secrets.GITHUB_TOKEN }} |
26 | 20 | - uses: JS-DevTools/npm-publish@v1 |
27 | 21 | with: |
28 | 22 | token: ${{ secrets.NPM_TOKEN }} |
29 | | - publish-pre-release: |
| 23 | + - run: git commit -am "🏷️(version) Update boilerplate to version ${{ github.event.release.tag_name }}" |
| 24 | + - run: git push |
| 25 | + env: |
| 26 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
| 27 | + publish-candidate: |
30 | 28 | if: "github.event.release.prerelease" |
31 | 29 | runs-on: ubuntu-latest |
32 | 30 | steps: |
33 | | - - uses: actions/checkout@v1 |
| 31 | + - uses: actions/checkout@v2 |
34 | 32 | - uses: actions/setup-node@v1 |
35 | 33 | with: |
36 | 34 | node-version: 14 |
37 | | - - name: Update package.json and push |
38 | | - run: | |
| 35 | + - run: | |
39 | 36 | git config --global user.name "JeremyDolle" |
40 | 37 | git config --global user.email "jeremy.dolle34@gmail.com" |
41 | 38 | npm version ${{ github.event.release.tag_name }} |
42 | | - git commit -am "🏷️(version) Update boilerplate to version ${{ github.event.release.tag_name }}" |
43 | | - git push |
44 | | - env: |
45 | | - github-token: ${{ secrets.GITHUB_TOKEN }} |
46 | 39 | - uses: JS-DevTools/npm-publish@v1 |
47 | 40 | with: |
48 | 41 | token: ${{ secrets.NPM_TOKEN }} |
49 | 42 | tag: ${{ github.event.release.tag_name }} |
| 43 | + - run: git commit -am "🏷️(version) Update boilerplate to rc version ${{ github.event.release.tag_name }}" |
| 44 | + - run: git push |
| 45 | + env: |
| 46 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
0 commit comments