Skip to content

build(deps): bump micromatch from 4.0.4 to 4.0.8 in /tests/fable #141

build(deps): bump micromatch from 4.0.4 to 4.0.8 in /tests/fable

build(deps): bump micromatch from 4.0.4 to 4.0.8 in /tests/fable #141

Workflow file for this run

name: Build and Test
on:
push:
pull_request:
workflow_dispatch:
inputs:
release:
description: 'Release NuGet package'
required: true
default: false
type: boolean
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
dotnet: [6.0.401]
node: ['14']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: setup git config
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ matrix.dotnet }}
- name: Install local tools
run: dotnet tool restore
- name: Paket Restore
run: dotnet paket restore
- name: Build and Test
run: dotnet fake run build.fsx
- name: Check secrets presence
id: checksecrets
shell: bash
run: |
echo "secretspresent=YES" >> $GITHUB_OUTPUT
if [ "$GITHUB_TOKEN" == "" ]; then
echo "secretspresent=NO" >> $GITHUB_OUTPUT
fi
if [ "$NUGET_KEY" == "" ]; then
echo "secretspresent=NO" >> $GITHUB_OUTPUT
fi
env:
NUGET_KEY: ${{ secrets.NUGETKEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish prerelease NuGet to GitHub
if: (steps.checksecrets.outputs.secretspresent != 'NO') && matrix.os == 'windows-latest' && github.ref == 'refs/heads/master' && github.event.inputs.release != 'true'
run: dotnet fake run build.fsx -t PublishCINuGet
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish NuGet to NuGet.org
if: (steps.checksecrets.outputs.secretspresent != 'NO') && matrix.os == 'windows-latest' && github.ref == 'refs/heads/master' && github.event.inputs.release == 'true'
run: dotnet fake run build.fsx -t Release
env:
NUGET_KEY: ${{ secrets.NUGETKEY }}