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

Commit 1fa9484

Browse files
semantic-release-botachingbrain
authored andcommitted
chore: update build
1 parent fcc706e commit 1fa9484

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/test.yml

+10-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
directories: |
3434
/tmp/*-ipfs/**
3535
./scripts/libp2p-relay-daemon
36+
./types
3637
build: |
3738
./scripts/custom-runtime.sh
3839
@@ -50,6 +51,7 @@ jobs:
5051
directories: |
5152
/tmp/*-ipfs/**
5253
./scripts/libp2p-relay-daemon
54+
./types
5355
build: |
5456
./scripts/custom-runtime.sh
5557
- run: |
@@ -70,6 +72,7 @@ jobs:
7072
directories: |
7173
/tmp/*-ipfs/**
7274
./scripts/libp2p-relay-daemon
75+
./types
7376
build: |
7477
./scripts/custom-runtime.sh
7578
- run: npm run test -- -t node
@@ -97,6 +100,7 @@ jobs:
97100
directories: |
98101
/tmp/*-ipfs/**
99102
./scripts/libp2p-relay-daemon
103+
./types
100104
build: |
101105
./scripts/custom-runtime.sh
102106
- run: npm run test -- -t ${{ matrix.type }} -- --browser ${{ matrix.browser }}
@@ -121,13 +125,15 @@ jobs:
121125
directories: |
122126
/tmp/*-ipfs/**
123127
./scripts/libp2p-relay-daemon
128+
./types
124129
build: |
125130
./scripts/custom-runtime.sh
126131
- uses: GabrielBB/xvfb-action@v1
127132
with:
128133
run: npm run test -- -t ${{ matrix.type }} --bail -f dist/cjs/node-test/*js
129134

130135
release:
136+
needs: build
131137
# needs: [test-node, test-browser, test-electron]
132138
runs-on: ubuntu-latest
133139
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
@@ -140,12 +146,15 @@ jobs:
140146
directories: |
141147
/tmp/*-ipfs/**
142148
./scripts/libp2p-relay-daemon
149+
./types
143150
build: |
144151
./scripts/custom-runtime.sh
145152
- uses: actions/setup-node@v2
146153
with:
147154
node-version: lts/*
148-
- run: npm run --if-present release
155+
- run: |
156+
npm run --if-present release
157+
working-directory: ${{ env.GITHUB_WORKSPACE }}
149158
env:
150159
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
151160
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
},
143143
"scripts": {
144144
"clean": "rimraf /tmp/js-ipfs /tmp/go-ipfs ./go-libp2p-relay-daemon dist types",
145-
"prepare": "aegir build --no-bundle && cp -R types dist && cp -R scripts dist",
145+
"prepare": "ls -la && aegir build --no-bundle && cp -R types dist && cp -R scripts dist",
146146
"lint": "aegir lint",
147147
"build": "aegir build --esm-tests",
148148
"release": "semantic-release",

0 commit comments

Comments
 (0)