-
-
Notifications
You must be signed in to change notification settings - Fork 5
Add post release workflow #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 6 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
639864b
ci(release): Add initial post-release workflow
minwork dae6217
ci(release): Test trigger new workflow
minwork a33a25e
ci(release): Upload tests coverage report to Codecov
minwork c4f8393
ci(release): Fix using project as an output from previous job
minwork 8eb0f18
ci(release): Remove test run branch push
minwork 3a6e772
ci(release): Remove hooks flag from Codecov upload
minwork a83dd3d
ci(pr): Rename verify PR job
minwork be2b1ee
ci(pr): Add report status job for properly setting PR status checks
minwork ab72797
ci(release): Add permissions to post-release workflow
minwork 72c41f6
ci(release): Add CODEOWNERS file
minwork File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| name: Post Release | ||
|
|
||
| on: | ||
| push: | ||
| tags: | ||
| - "*@*.*.*" | ||
|
|
||
| jobs: | ||
| extract-project: | ||
| name: Extract project name from git tag | ||
| runs-on: ubuntu-latest | ||
| outputs: | ||
| project: ${{ steps.extract-project-name.outputs.project }} | ||
| steps: | ||
| - name: Extract Project Name | ||
| id: extract-project-name | ||
| shell: bash | ||
| run: | | ||
| TAG_NAME=${{ github.ref_name }} | ||
| if [[ "$TAG_NAME" =~ ^(.+)@[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9.]+)?$ ]]; then | ||
| PROJECT_NAME=${BASH_REMATCH[1]} | ||
| else | ||
| PROJECT_NAME="" | ||
| fi | ||
| echo "project=$PROJECT_NAME" >> "$GITHUB_OUTPUT" | ||
| echo "Extracted project '$PROJECT_NAME' from '$TAG_NAME'" | ||
|
|
||
| upload-test-coverage: | ||
| name: Upload tests coverage for project | ||
| runs-on: ubuntu-latest | ||
| needs: extract-project | ||
| if: ${{ needs.extract-project.outputs.project != '' }} | ||
| env: | ||
| PROJECT: ${{ needs.extract-project.outputs.project }} | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-tags: 'true' | ||
| fetch-depth: '0' | ||
|
|
||
| - name: Enable Corepack | ||
| run: corepack enable | ||
|
|
||
| - name: Install Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 20 | ||
| registry-url: 'https://registry.npmjs.org/' | ||
| cache: 'yarn' | ||
| cache-dependency-path: 'yarn.lock' | ||
|
|
||
| - name: Install dependencies | ||
| run: yarn install --immutable | ||
|
|
||
| - name: Run tests with coverage | ||
| run: npx nx run ${{ env.PROJECT }}:test --coverage | ||
|
|
||
| - name: Upload ${{ env.PROJECT }} coverage reports to Codecov | ||
| uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 | ||
| with: | ||
| token: ${{ secrets.CODECOV_TOKEN }} | ||
| directory: ./coverage/packages/${{ env.PROJECT }} | ||
| flags: ${{ env.PROJECT }} | ||
|
||
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.