Skip to content

Commit

Permalink
Add env var to reduce duplication of package name
Browse files Browse the repository at this point in the history
  • Loading branch information
mgriffin-scottlogic committed Jun 28, 2024
1 parent 293cdfd commit 34676c7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Publish new package
on:
workflow_dispatch:
pull_request: #TODO - For testing, remove before final merge
env:
PACKAGE_PREFIX: scottlogic-tech-carbon-estimator-
jobs:
package:
runs-on: ubuntu-latest
Expand All @@ -24,6 +26,6 @@ jobs:
uses: actions/upload-artifact@v4
with:
if-no-files-found: error
name: scottlogic-tech-carbon-estimator-${{env.VERSION}}
path: ./dist/tech-carbon-estimator/scottlogic-tech-carbon-estimator-${{env.VERSION}}.tgz
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

0 comments on commit 34676c7

Please sign in to comment.