Skip to content

Commit

Permalink
better support for ESM/CJS bundlers
Browse files Browse the repository at this point in the history
  • Loading branch information
juanelas committed Nov 10, 2023
1 parent 915ca9c commit 76b5471
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
- 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 }}

0 comments on commit 76b5471

Please sign in to comment.