feat: allow ESM in mjs import files using named exports (#461) #152
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| release-please: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: googleapis/release-please-action@v4 | |
| id: release | |
| with: | |
| token: ${{ secrets.BOT_TOKEN }} | |
| release-type: node | |
| package-name: 'rest-on-couch' | |
| - uses: actions/checkout@v5 | |
| # These if statements ensure that a publication only occurs when a new release is created | |
| if: ${{ steps.release.outputs.release_created }} | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version-file: package.json | |
| registry-url: 'https://registry.npmjs.org' | |
| if: ${{ steps.release.outputs.release_created }} | |
| - run: npm publish | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_BOT_TOKEN }} | |
| if: ${{ steps.release.outputs.release_created }} |