Skip to content

Commit

Permalink
Add publish stage of the job with dry run status
Browse files Browse the repository at this point in the history
  • Loading branch information
mgriffin-scottlogic committed Jun 28, 2024
1 parent 34676c7 commit 9c0a23e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,19 @@ 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

publish:
runs-on: ubuntu-latest
needs: package
steps:
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 18
- name: Download package
uses: actions/download-artifact@v4
with:
name: ${{env.PACKAGE_PREFIX}}${{env.VERSION}}
- name: Publish to NPM registry
run: |
npm publish ${PACKAGE_PREFIX}${VERSION}.tgz --access public --dry-run

0 comments on commit 9c0a23e

Please sign in to comment.