diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 89bc8fa..93a1801 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -15,11 +15,16 @@ jobs: steps: - uses: actions/checkout@v2 - name: npm install and build webpack - run: | - npm install - npm run build + run: | + npm install + npm run build + - uses: actions/upload-artifact@master + with: + name: save webpack artifacts + path: public/ test: runs-on: ubuntu-latest + needs: build strategy: matrix: node-version: [10.x, 12.x] @@ -27,6 +32,10 @@ jobs: steps: - uses: actions/checkout@v2 + - uses: actions/download-artifact@master + with: + name: save webpack artifacts + path: public - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1 with: