33
33
directories : |
34
34
/tmp/*-ipfs/**
35
35
./scripts/libp2p-relay-daemon
36
+ ./types
36
37
build : |
37
38
./scripts/custom-runtime.sh
38
39
50
51
directories : |
51
52
/tmp/*-ipfs/**
52
53
./scripts/libp2p-relay-daemon
54
+ ./types
53
55
build : |
54
56
./scripts/custom-runtime.sh
55
57
- run : |
70
72
directories : |
71
73
/tmp/*-ipfs/**
72
74
./scripts/libp2p-relay-daemon
75
+ ./types
73
76
build : |
74
77
./scripts/custom-runtime.sh
75
78
- run : npm run test -- -t node
97
100
directories : |
98
101
/tmp/*-ipfs/**
99
102
./scripts/libp2p-relay-daemon
103
+ ./types
100
104
build : |
101
105
./scripts/custom-runtime.sh
102
106
- run : npm run test -- -t ${{ matrix.type }} -- --browser ${{ matrix.browser }}
@@ -121,13 +125,15 @@ jobs:
121
125
directories : |
122
126
/tmp/*-ipfs/**
123
127
./scripts/libp2p-relay-daemon
128
+ ./types
124
129
build : |
125
130
./scripts/custom-runtime.sh
126
131
- uses : GabrielBB/xvfb-action@v1
127
132
with :
128
133
run : npm run test -- -t ${{ matrix.type }} --bail -f dist/cjs/node-test/*js
129
134
130
135
release :
136
+ needs : build
131
137
# needs: [test-node, test-browser, test-electron]
132
138
runs-on : ubuntu-latest
133
139
if : github.event_name == 'push' && github.ref == 'refs/heads/master'
@@ -140,12 +146,15 @@ jobs:
140
146
directories : |
141
147
/tmp/*-ipfs/**
142
148
./scripts/libp2p-relay-daemon
149
+ ./types
143
150
build : |
144
151
./scripts/custom-runtime.sh
145
152
- uses : actions/setup-node@v2
146
153
with :
147
154
node-version : lts/*
148
- - run : npm run --if-present release
155
+ - run : |
156
+ npm run --if-present release
157
+ working-directory: ${{ env.GITHUB_WORKSPACE }}
149
158
env:
150
159
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
151
160
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments