From 76b54719128de679453a78c40dec94c711212e8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Hern=C3=A1ndez=20Serrano?= Date: Fri, 10 Nov 2023 12:08:35 +0100 Subject: [PATCH] better support for ESM/CJS bundlers --- .github/workflows/build-and-test.yml | 54 ++++++++++++++-------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 21f9934..84a725c 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -86,31 +86,31 @@ jobs: # VARIABLE1: ${{ secrets.VARIABLE1 }} # VARIABLE2: ${{ secrets.VARIABLE2 }} - # publish: - # needs: [nodetests, browsertests] - # runs-on: ubuntu-latest - # steps: - # - name: Git checkout - # uses: actions/checkout@v3 - - # - name: Install Node.js - # uses: actions/setup-node@v3 - # with: - # node-version: "20.x" - # registry-url: "https://registry.npmjs.org" - - # # - name: install - # # run: npm ci + publish: + needs: [nodetests, browsertests] + runs-on: ubuntu-latest + steps: + - name: Git checkout + uses: actions/checkout@v3 + + - name: Install Node.js + uses: actions/setup-node@v3 + with: + node-version: "20.x" + registry-url: "https://registry.npmjs.org" + + - name: install + run: npm ci - # # - name: coverage - # # run: npm run coverage - - # # - name: send report to coveralls.io - # # uses: coverallsapp/github-action@master - # # with: - # # github-token: ${{ secrets.GITHUB_TOKEN }} - - # - name: NPM publish - # run: npm publish --access public - # env: - # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file + - name: coverage + run: npm run coverage + + - name: send report to coveralls.io + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + + - name: NPM publish + run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file