Skip to content

Commit

Permalink
Pass version across jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
mgriffin-scottlogic committed Jun 28, 2024
1 parent 9c0a23e commit a94cfe5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ env:
jobs:
package:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.output.outputs.version}}
steps:
- name: Check out code
uses: actions/checkout@v4
Expand All @@ -29,10 +31,15 @@ jobs:
name: ${{env.PACKAGE_PREFIX}}${{env.VERSION}}
path: ./dist/tech-carbon-estimator/${{env.PACKAGE_PREFIX}}${{env.VERSION}}.tgz
overwrite: true #TODO - For testing, remove before final merge
- name: Output version
id: output
run: echo "version=$VERSION" >> "$GITHUB_OUTPUT"

publish:
runs-on: ubuntu-latest
needs: package
env:
VERSION: ${{needs.package.outputs.version}}
steps:
- name: Set up Node
uses: actions/setup-node@v4
Expand Down

0 comments on commit a94cfe5

Please sign in to comment.