diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ba32cd2..3188e50 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,15 +1,22 @@ name: Build -on: [pull_request, push] +on: + push: + branches: + - master + pull_request: + branches: + - master jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} strategy: matrix: - node-version: [8.x, 10.x, 12.x] + os: [ubuntu-latest, windows-latest] + node-version: [10.x, 12.x] steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml new file mode 100644 index 0000000..788ee8d --- /dev/null +++ b/.github/workflows/package.yml @@ -0,0 +1,31 @@ +name: Package + +on: + push: + tags: + - "v*" + +jobs: + build: + + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest] + node-version: [10.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm run compile + - run: npm pack + - name: Save package artifact + uses: actions/upload-artifact@v2 + with: + name: generator-wasm-oci + path: generator-wasm-oci-*.tgz diff --git a/.gitignore b/.gitignore index baac4a9..e3a5e0a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules coverage generators/**/* +*.tgz