Skip to content

Commit

Permalink
chore: add release + readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
Louie Colgan authored and Louie Colgan committed Sep 4, 2021
1 parent f4b34a2 commit 859209f
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 7 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ on:
branches: [master]
paths-ignore:
- '**.md'
push:
branches: [master]
paths-ignore:
- '**.md'

jobs:
build:
Expand Down
47 changes: 47 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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 }}


Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,17 @@
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>3.0.0</Version>
<Product>BlazorIntersectionObserver</Product>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageReleaseNotes>
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</PackageReleaseNotes>
<PackageLicenseFile>LICENCE.txt</PackageLicenseFile>
<Copyright>Copyright © 2021 - Louie Colgan</Copyright>
Expand Down Expand Up @@ -100,5 +101,6 @@ namespace conflicts with Blazor libraries.
<None Include="Properties\launchSettings.json" />
<None Include="tsconfig.json">
</None>
<None Include="..\..\README.md" Pack="true" PackagePath="\"/>
</ItemGroup>
</Project>

0 comments on commit 859209f

Please sign in to comment.