Skip to content

Commit

Permalink
Specify the full file path and name the artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
mgriffin-scottlogic committed Jun 28, 2024
1 parent e896209 commit 293cdfd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ jobs:
npm pkg delete scripts private devDependencies files
npm pkg set main=main.js
npm pack
VERSION=$(npm pkg get version --workspaces=false | tr -d \")
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
if-no-files-found: error
path: ./dist/tech-carbon-estimator/scottlogic-tech-carbon-estimator-*.tgz
name: scottlogic-tech-carbon-estimator-${{env.VERSION}}
path: ./dist/tech-carbon-estimator/scottlogic-tech-carbon-estimator-${{env.VERSION}}.tgz
overwrite: true #TODO - For testing, remove before final merge

0 comments on commit 293cdfd

Please sign in to comment.