ci(deps-dev): bump @halospv3/hce.shared-config to v3.4.0
#82
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Test changes locally with https://github.com/nektos/act | |
| # Edit graphically with https://marketplace.visualstudio.com/items?itemName=actionforge.actionforge | |
| name: Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - develop | |
| env: | |
| DOTNET_ROLL_FORWARD: "Major" | |
| DOTNET_CLI_TELEMETRY_OPTOUT: 1 | |
| DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 | |
| DOTNET_NOLOGO: 1 | |
| NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages | |
| jobs: | |
| ci: | |
| name: CI | |
| uses: ./.github/workflows/ci.yml | |
| # based on https://github.com/semantic-release/semantic-release/blob/master/docs/recipes/ci-configurations/github-actions.md | |
| release: | |
| needs: [ci] | |
| runs-on: ubuntu-latest | |
| permissions: | |
| attestations: write | |
| contents: write # to be able to publish a GitHub release | |
| issues: write # to be able to comment on released issues | |
| pull-requests: write # to be able to comment on released pull requests | |
| id-token: write # to enable use of OIDC for npm provenance, publishing; nuget publishing | |
| packages: write # for pushing GitHub Nuget packages | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 # necessary for semantic release | |
| - uses: actions/setup-node@v6 | |
| with: | |
| cache: "npm" | |
| check-latest: true | |
| node-version-file: package.json | |
| node-version: lts/* | |
| - uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: "8.x" | |
| cache: true | |
| cache-dependency-path: './GroupBox.Avalonia*/packages.lock.json' | |
| - run: npm i -g npm@latest | |
| - name: NPM - Clean Install | |
| run: npm ci | |
| - name: NPM - Audit Signatures | |
| run: npm audit signatures | |
| - name: Update version in README's Avalonia badge | |
| run: npm run update-readme | |
| # Use the ambient GitHub token to login to NuGet and retrieve an API key | |
| - name: NuGet login (OIDC → temp API key) | |
| uses: NuGet/login@v1 | |
| id: login | |
| with: | |
| user: nToss | |
| # [release# | |
| # steps](https://github.com/semantic-release/semantic-release#release-steps) | |
| # Plugins add sub-steps e.g. @semantic-release/git's Prepare will create a | |
| # release commit, including configurable file assets." | |
| # After the new version Git tagged, @semantic-release/exec runs | |
| # `dotnet publish`. @semantic-release/github adds the artifacts to the | |
| # GitHub Release. | |
| - name: Semantic Release | |
| id: semantic_release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NUGET_TOKEN: ${{ steps.login.outputs.NUGET_API_KEY }} | |
| shell: pwsh | |
| run: npx semantic-release --debug | |
| - name: Generate artifact attestation | |
| uses: actions/attest-build-provenance@96278af6caaf10aea03fd8d33a09a777ca52d62f # v3.2.0 | |
| with: | |
| subject-path: publish/* | |
| - uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 | |
| with: | |
| name: publish | |
| path: publish/ |