diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5595c44..997c74d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,10 +5,6 @@ on: branches: [master] paths-ignore: - '**.md' - push: - branches: [master] - paths-ignore: - - '**.md' jobs: build: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..51430a3 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,47 @@ +name: release + +on: + push: + branches: [master] + paths-ignore: + - '**.md' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Set Node.js + uses: actions/setup-node@v1 + with: + node-version: 10.x + + - name: Install npm dependencies + run: | + npm ci + working-directory: src/Ljbc1994.Blazor.IntersectionObserver + + - name: Run tests + run: | + npm run test + working-directory: src/Ljbc1994.Blazor.IntersectionObserver + + - name: Setup Dotnet + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '5.0.x' + include-prerelease: true + + - name: Dotnet build + run: dotnet build --configuration Release + + - name: Dotnet pack + run: dotnet pack src/Ljbc1994.Blazor.IntersectionObserver/*.csproj --configuration Release --verbosity Detailed + + - name: Dotnet publish to nuget + run: dotnet nuget push src/Ljbc1994.Blazor.IntersectionObserver/bin/Release/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json + env: + NUGET_AUTH_TOKEN: ${{ secrets.NUGET_TOKEN }} + + \ No newline at end of file diff --git a/src/Ljbc1994.Blazor.IntersectionObserver/Ljbc1994.Blazor.IntersectionObserver.csproj b/src/Ljbc1994.Blazor.IntersectionObserver/Ljbc1994.Blazor.IntersectionObserver.csproj index 1ff348e..3231dd0 100644 --- a/src/Ljbc1994.Blazor.IntersectionObserver/Ljbc1994.Blazor.IntersectionObserver.csproj +++ b/src/Ljbc1994.Blazor.IntersectionObserver/Ljbc1994.Blazor.IntersectionObserver.csproj @@ -18,16 +18,17 @@ true 3.0.0 BlazorIntersectionObserver + README.md -22/08/2021 +3.0.0 - *BREAKING CHANGE* Namespace has been changed to `Ljbc1994.Blazor.IntersectionObserver` to avoid namespace conflicts with Blazor libraries. -19/05/2021 +2.0.1 - *BREAKING CHANGE* The IntersectionObserve component now requires a reference to the node it's observing. - The imported observer script is now minified. -06/12/2020 +1.0.0 - Updated project to use dotnet 5 LICENCE.txt Copyright © 2021 - Louie Colgan @@ -100,5 +101,6 @@ namespace conflicts with Blazor libraries. + \ No newline at end of file