| 1 | on: |
| 2 | push: |
| 3 | branches: |
| 4 | - master |
| 5 | name: release-please |
| 6 | jobs: |
| 7 | release-please: |
| 8 | runs-on: ubuntu-latest |
| 9 | steps: |
| 10 | - uses: bcoe/release-please-action@v2 |
| 11 | id: release |
| 12 | with: |
| 13 | token: ${{ secrets.GITHUB_TOKEN }} |
| 14 | release-type: node |
| 15 | package-name: yargs |
| 16 | - uses: actions/checkout@v2 |
| 17 | - uses: actions/setup-node@v1 |
| 18 | with: |
| 19 | node-version: 14 |
| 20 | registry-url: 'https://external-dot-oss-automation.appspot.com/' |
| 21 | if: ${{ steps.release.outputs.release_created }} |
| 22 | - run: npm install |
| 23 | if: ${{ steps.release.outputs.release_created }} |
| 24 | - run: npm publish |
| 25 | env: |
| 26 | NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |
| 27 | if: ${{ steps.release.outputs.release_created }} |