diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fe6bab9..cb5e9b9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,15 +21,18 @@ jobs: run: yarn test - name: Run automated release process with semantic-release - if: github.event_name == 'push' && contains(github.ref, 'master') + if: github.event_name == 'push' + uses: cycjimmy/semantic-release-action@v2 + with: + extra_plugins: | + @semantic-release/changelog + @semantic-release/git + @semantic-release/exec env: GH_TOKEN: ${{ secrets.GH_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - run: | - sudo npm i -g semantic-release@16.0.0-beta.31 @semantic-release/changelog@3 @semantic-release/exec@3.4.0-beta.6 @semantic-release/git@7.1.0-beta.8 - semantic-release - - name: Report coverage to coveralls.io - uses: coverallsapp/github-action@master - with: - github-token: ${{ secrets.GITHUB_TOKEN }} + # - name: Report coverage to coveralls.io + # uses: coverallsapp/github-action@master + # with: + # github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/src/sweetalert2-react-content.d.ts b/src/sweetalert2-react-content.d.ts index a33e8cb..ac52e6b 100644 --- a/src/sweetalert2-react-content.d.ts +++ b/src/sweetalert2-react-content.d.ts @@ -23,6 +23,10 @@ interface ReactSweetAlert { (title?: ReactElementOr<'title'>, message?: ReactElementOr<'html'>, icon?: SweetAlertIcon): Promise; (options: ReactSweetAlertOptions): Promise; + + fire(title?: ReactElementOr<'title'>, message?: ReactElementOr<'html'>, icon?: SweetAlertIcon): Promise; + + fire(options: ReactSweetAlertOptions): Promise; } type SweetAlert2 = typeof swal;