mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-04-25 10:32:14 +00:00
chore: fix build on webworkers
This commit is contained in:
parent
bf1fc325b6
commit
fc43db750d
14
.github/workflows/main.yml
vendored
14
.github/workflows/main.yml
vendored
@ -81,7 +81,7 @@ jobs:
|
||||
with:
|
||||
node-version: lts/*
|
||||
- uses: ipfs/aegir/actions/cache-node-modules@master
|
||||
- run: npm run test:browser -- -t webworker --cov --bail
|
||||
- run: npm run test:browser -- -t webworker --bail
|
||||
- uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
|
||||
with:
|
||||
directory: ./.nyc_output
|
||||
@ -97,6 +97,10 @@ jobs:
|
||||
node-version: lts/*
|
||||
- uses: ipfs/aegir/actions/cache-node-modules@master
|
||||
- run: npm run test:browser -- -t browser --bail -- --browser firefox
|
||||
- uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
|
||||
with:
|
||||
directory: ./.nyc_output
|
||||
flags: firefox
|
||||
|
||||
test-firefox-webworker:
|
||||
needs: build
|
||||
@ -108,6 +112,10 @@ jobs:
|
||||
node-version: lts/*
|
||||
- uses: ipfs/aegir/actions/cache-node-modules@master
|
||||
- run: npm run test:browser -- -t webworker --bail -- --browser firefox
|
||||
- uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
|
||||
with:
|
||||
directory: ./.nyc_output
|
||||
flags: firefox-webworker
|
||||
|
||||
test-ts:
|
||||
needs: build
|
||||
@ -133,7 +141,7 @@ jobs:
|
||||
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [test-node, test-chrome, test-firefox, test-ts, test-interop]
|
||||
needs: [test-node, test-chrome, test-chrome-webworker, test-firefox, test-firefox-webworker, test-ts, test-interop]
|
||||
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
||||
steps:
|
||||
- uses: GoogleCloudPlatform/release-please-action@v2
|
||||
@ -149,10 +157,12 @@ jobs:
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
- uses: ipfs/aegir/actions/cache-node-modules@master
|
||||
- if: ${{ steps.release.outputs.release_created }}
|
||||
name: Run release version
|
||||
run: npm publish
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
- if: ${{ !steps.release.outputs.release_created }}
|
||||
name: Run release rc
|
||||
run: |
|
||||
npm version `node -p -e "require('./package.json').version"`-`git rev-parse --short HEAD` --no-git-tag-version
|
||||
npm publish --tag next
|
||||
|
Loading…
x
Reference in New Issue
Block a user