Files: 38ccab9d753ebe2ba536e6d345ed99b8441fdc55 / .github / workflows / main.yml
855 bytesRaw
1 | name: Node.js CI |
2 | |
3 | on: |
4 | push: |
5 | branches: [master] |
6 | pull_request: |
7 | branches: [master] |
8 | |
9 | jobs: |
10 | build: |
11 | runs-on: ${{ matrix.os }} |
12 | |
13 | strategy: |
14 | fail-fast: true |
15 | matrix: |
16 | os: [macos-latest, windows-latest, ubuntu-latest] |
17 | node-version: [10.x, 12.x, 14.x] |
18 | |
19 | steps: |
20 | - run: git config --global core.autocrlf false |
21 | - uses: actions/checkout@v2 |
22 | - name: Use Node.js ${{ matrix.node-version }} |
23 | uses: actions/setup-node@v1 |
24 | with: |
25 | node-version: ${{ matrix.node-version }} |
26 | - run: npm ci |
27 | # - run: npm test |
28 | # build (will not publish) |
29 | - run: npm run build |
30 | if: github.ref != 'refs/heads/master' |
31 | # dist (may publish) |
32 | - run: npm run dist |
33 | if: github.ref == 'refs/heads/master' |
34 | env: |
35 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
36 |
Built with git-ssb-web