Skip to content

Allow tool to roll forward through major versions. #123

Allow tool to roll forward through major versions.

Allow tool to roll forward through major versions. #123

Workflow file for this run

name: Build
on:
push:
branches: [master]
tags-ignore: ['**']
pull_request:
workflow_dispatch:
env:
DOTNET_NOLOGO: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
defaults:
run:
shell: pwsh
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 0 # required to publish docs
- name: Install .NET
uses: actions/setup-dotnet@v4
- name: Restore
run: .\build.ps1 restore
- name: Build
run: .\build.ps1 build --skip restore
- name: Test
run: .\build.ps1 test --skip build
- name: Publish
if: runner.os == 'Windows' && github.repository_owner == 'FacilityApi' && github.ref == 'refs/heads/master'
env:
BUILD_BOT_PASSWORD: ${{ secrets.BUILD_BOT_PASSWORD }}
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
run: .\build.ps1 publish --skip test
- name: Build NPM
if: runner.os == 'Linux'
run: .\build.ps1 build-npm
- name: Test NPM
if: runner.os == 'Linux'
run: .\build.ps1 test-npm --skip build-npm
- name: Publish NPM
if: runner.os == 'Linux' && github.repository_owner == 'FacilityApi' && github.ref == 'refs/heads/master'
env:
NPM_ACCESS_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
run: .\build.ps1 publish-npm --skip test-npm