Skip to content

Commit e21dcb4

Browse files
committed
feat: update build workflow to include version output and upgrade PHP version to 8.3
1 parent 2923980 commit e21dcb4

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,19 @@ on:
88
type: string
99
default: ${{ inputs.ref }}
1010
outputs:
11-
artifact_name:
11+
version:
12+
value: ${{ jobs.build.outputs.version }}
13+
artifact_name:
1214
value: ${{ jobs.build.outputs.artifact_name }}
13-
artifact_url:
15+
artifact_url:
1416
value: ${{ jobs.build.outputs.artifact_url }}
1517
jobs:
1618
build:
1719
runs-on: ubuntu-latest
1820
outputs:
1921
artifact_name: ${{ steps.build.outputs.name }}
2022
artifact_url: ${{ steps.artifacts.outputs.artifact-url }}
23+
version: ${{ steps.build.outputs.version }}
2124
steps:
2225
- uses: actions/checkout@v4
2326
with:
@@ -26,7 +29,7 @@ jobs:
2629
- name: Set up PHP
2730
uses: shivammathur/setup-php@v2
2831
with:
29-
php-version: '8.1'
32+
php-version: "8.3"
3033

3134
- name: Set up Node.js
3235
uses: actions/setup-node@v4
@@ -38,6 +41,7 @@ jobs:
3841
run: |
3942
npm install && npm run bundle
4043
echo "name=$(jq -r .name package.json)" >> $GITHUB_OUTPUT
44+
echo "version=$(jq -r .version package.json)" >> $GITHUB_OUTPUT
4145
4246
- name: Upload
4347
id: artifacts

0 commit comments

Comments
 (0)