fix(nah): nah #93
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
| name: Release | |
| on: [push, pull_request] | |
| #on: | |
| # push: | |
| # branches: | |
| # - [master, main] # Only trigger on main branch pushes | |
| ## qqqq want regular releases so maybe not release branch but would be nice as part of pr to have a branch have its own gh-deploy | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # Required for Semantic Release to analyze commit history | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| global-json-file: global.json | |
| ## dont lint, secret scan, and dont test will happen elsewhere qqqq | |
| # - name: Install Semantic Release | |
| # run: npm install -g semantic-release | |
| - name: Install Semantic Release Packages | |
| run: | | |
| npm install -D \ | |
| semantic-release \ | |
| @semantic-release/changelog \ | |
| @semantic-release/git \ | |
| @semantic-release/commit-analyzer \ | |
| @semantic-release/release-notes-generator | |
| ##configured with .releaseseec | |
| - name: Run Semantic Release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: npx semantic-release | |
| # may not need this | |
| # - name: Upload release asset | |
| # id: upload-release-asset | |
| # uses: actions/upload-release-asset@v1 | |
| # env: | |
| # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # with: | |
| # upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| # asset_path: ./dist/nhsuk-frontend-${{ steps.get_version.outputs.VERSION }}.zip | |
| # asset_name: nhsuk-frontend-${{ steps.get_version.outputs.VERSION }}.zip | |
| # asset_content_type: application/zip | |
| #todo qqqq | |
| # - name: Publish NPM package | |
| # run: npm publish | |
| # env: | |
| # NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | |
| ## qqqq after nuget release do run deploy script - try and have a dev/test/stage area for sharing before release | |
| ## our deploy will have own yaml and be dependant on this one as has few steps | |