Skip to content

Commit c36a860

Browse files
authored
Merge pull request #14 from knaopel/v1.19.0
Save tag name to output
2 parents b2f5ccb + 9be35cf commit c36a860

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/test-and-build.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ jobs:
6464
runs-on: ubuntu-latest
6565
needs: test
6666
if: ${{ github.event_name == 'push' }}
67-
outputs:
68-
tag_name: ${{ steps.json_properties.outputs.solution.version }}
6967
steps:
7068
- name: Check out git repository
7169
uses: actions/checkout@v4
@@ -81,6 +79,10 @@ jobs:
8179
git tag -f v${{ steps.json_properties.outputs.solution.version }}
8280
git push --tags --force
8381
82+
- name: Set Variable value
83+
run: |
84+
echo "TAG_NAME=${{ steps.json_properties.outputs.solution.version }}" >> $GITHUB_OUTPUT
85+
8486
- name: Install Node.js v${{ env.NODE_VERSION }}, and NPM
8587
uses: actions/setup-node@v4
8688
with:
@@ -95,7 +97,7 @@ jobs:
9597
- name: Create sppkg package
9698
run: gulp package-solution --ship
9799

98-
- name: publish build artifact
100+
- name: Publish build artifact
99101
uses: actions/upload-artifact@v4
100102
with:
101103
name: sp-pkg
@@ -106,8 +108,10 @@ jobs:
106108
name: Release sub-job
107109
needs: package
108110
uses: ./.github/workflows/release.yml
111+
# env:
112+
# TAG_NAME: ${{needs.package.outputs.TAG_NAME }}
109113
with:
110-
tag_name: ${{ needs.package.tag_name }}
114+
tag_name: ${{ needs.package.outputs.TAG_NAME }}
111115
artifact_name: sp-pkg
112116
# name: Release SPFx solution
113117
# runs-on: ubuntu-latest

0 commit comments

Comments
 (0)