mirror of
https://github.com/developit/microbundle.git
synced 2026-01-18 13:56:35 +00:00
add actions
This commit is contained in:
parent
41b87aff51
commit
8fb026ea16
47
.github/workflows/nodejs.yml
vendored
Normal file
47
.github/workflows/nodejs.yml
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
name: Node CI
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [10.x, 12.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- name: npm install, build, and test
|
||||
run: |
|
||||
npm install
|
||||
npm run build --if-present
|
||||
npm test
|
||||
|
||||
# Could add this for canary versions
|
||||
# publish-gpr:
|
||||
# needs: build
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - uses: actions/checkout@v1
|
||||
# - uses: actions/setup-node@v1
|
||||
# with:
|
||||
# node-version: 12
|
||||
# registry-url: https://npm.pkg.github.com/
|
||||
# scope: '@preact'
|
||||
# - run: |
|
||||
# npm install
|
||||
# npm config set registry https://npm.pkg.github.com/
|
||||
# npm publish
|
||||
# env:
|
||||
# NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||
Loading…
x
Reference in New Issue
Block a user