|
1 | 1 | name: Release |
2 | | -on: |
3 | | - workflow_dispatch: |
4 | | - inputs: |
5 | | - dryrun: |
6 | | - description: "DryRun" |
7 | | - required: false |
8 | | - default: 'true' |
| 2 | +on: [workflow_dispatch] |
9 | 3 | jobs: |
10 | 4 | release: |
11 | 5 | name: Release |
12 | 6 | runs-on: ubuntu-latest |
| 7 | +# if: github.ref == 'refs/heads/master' |
13 | 8 | steps: |
14 | 9 |
|
15 | | - - uses: actions/checkout@v2 |
| 10 | + - name: Setup Node.js for use with actions |
| 11 | + uses: actions/setup-node@v2.1.5 |
16 | 12 |
|
17 | | - - name: git/unshallow |
| 13 | + - name: Checkout |
| 14 | + uses: actions/checkout@v2 |
| 15 | + |
| 16 | + - name: Unshallow |
18 | 17 | run: git fetch --prune --unshallow |
19 | 18 |
|
20 | | - - uses: cycjimmy/semantic-release-action@v2 |
21 | | - with: |
22 | | - dry_run: ${{ github.event.inputs.dryrun }} |
23 | | - extra_plugins: | |
24 | | - @semantic-release/changelog |
25 | | - @semantic-release/git |
| 19 | + - name: Run semantic-release |
| 20 | + run: npx -p @semantic-release/changelog -p semantic-release@17.3.0 -p @semantic-release/git semantic-release |
26 | 21 | env: |
27 | | - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} |
| 22 | + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
0 commit comments