Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Commit

Permalink
chore: update build
Browse files Browse the repository at this point in the history
  • Loading branch information
semantic-release-bot authored and achingbrain committed Jan 26, 2022
1 parent fcc706e commit f4c783a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
directories: |
/tmp/*-ipfs/**
./scripts/libp2p-relay-daemon
./types
build: |
./scripts/custom-runtime.sh
Expand All @@ -50,6 +51,7 @@ jobs:
directories: |
/tmp/*-ipfs/**
./scripts/libp2p-relay-daemon
./types
build: |
./scripts/custom-runtime.sh
- run: |
Expand All @@ -70,6 +72,7 @@ jobs:
directories: |
/tmp/*-ipfs/**
./scripts/libp2p-relay-daemon
./types
build: |
./scripts/custom-runtime.sh
- run: npm run test -- -t node
Expand Down Expand Up @@ -97,6 +100,7 @@ jobs:
directories: |
/tmp/*-ipfs/**
./scripts/libp2p-relay-daemon
./types
build: |
./scripts/custom-runtime.sh
- run: npm run test -- -t ${{ matrix.type }} -- --browser ${{ matrix.browser }}
Expand All @@ -121,13 +125,15 @@ jobs:
directories: |
/tmp/*-ipfs/**
./scripts/libp2p-relay-daemon
./types
build: |
./scripts/custom-runtime.sh
- uses: GabrielBB/xvfb-action@v1
with:
run: npm run test -- -t ${{ matrix.type }} --bail -f dist/cjs/node-test/*js

release:
needs: build
# needs: [test-node, test-browser, test-electron]
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
Expand All @@ -140,12 +146,14 @@ jobs:
directories: |
/tmp/*-ipfs/**
./scripts/libp2p-relay-daemon
./types
build: |
./scripts/custom-runtime.sh
- uses: actions/setup-node@v2
with:
node-version: lts/*
- run: npm run --if-present release
- run: |
npm run --if-present release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,8 @@
},
"scripts": {
"clean": "rimraf /tmp/js-ipfs /tmp/go-ipfs ./go-libp2p-relay-daemon dist types",
"prepare": "aegir build --no-bundle && cp -R types dist && cp -R scripts dist",
"lint": "aegir lint",
"build": "aegir build --esm-tests",
"build": "aegir build --esm-tests && cp -R types dist && cp -R scripts dist",
"release": "semantic-release",
"postinstall": "cross-env node ./scripts/setup-libp2p-relay-daemon.js",
"pretest": "aegir build --esm-tests",
Expand Down

0 comments on commit f4c783a

Please sign in to comment.