Skip to content

Commit 639864b

Browse files
committed
ci(release): Add initial post-release workflow
1 parent 0d96651 commit 639864b

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

.github/workflows/post-release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Extract Project from Tag
2+
3+
on:
4+
push:
5+
tags:
6+
- "*@*.*.*"
7+
workflow_dispatch:
8+
9+
jobs:
10+
extract-project:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Extract Project Name
14+
id: extract
15+
run: |
16+
TAG_NAME=${{ github.ref_name }}
17+
PROJECT_NAME=$(echo "$TAG_NAME" | sed -E 's/@[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9.]+)?//')
18+
echo "project=$PROJECT_NAME" >> "$GITHUB_ENV"
19+
echo "::set-output name=project::$PROJECT_NAME"
20+
21+
- name: Show Extracted Project
22+
run: |
23+
echo "Extracted project: ${{ env.project }}"
24+
25+
use-project:
26+
runs-on: ubuntu-latest
27+
needs: extract-project
28+
steps:
29+
- name: Use Extracted Project Name
30+
run: echo "Project from tag is ${{ needs.extract-project.outputs.project }}"

nx.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
"generatorOptions": {
9898
"fallbackCurrentVersionResolver": "disk"
9999
},
100-
"preVersionCommand": "yarn nx run-many -t build",
100+
"preVersionCommand": "yarn nx run-many -t build"
101101
},
102102
"changelog": {
103103
"projectChangelogs": true,

0 commit comments

Comments
 (0)