Skip to content

Commit

Permalink
Create new workflow with first job of creating the package file
Browse files Browse the repository at this point in the history
  • Loading branch information
mgriffin-scottlogic committed Jun 28, 2024
1 parent 51a96ef commit b3f18b3
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish new package
on:
workflow_dispatch:
pull_request: #TODO - For testing, remove before final merge
jobs:
package:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up environment
uses: ./.github/actions/set-up-environment
- name: Create package
run: |
npm run prepare
cp README.md package.json ./dist/tech-carbon-estimator/
cd dist/tech-carbon-estimator
npm pkg delete scripts private devDependencies files
npm pkg set main=main.js
npm pack
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
if-no-files-found: error
path: scottlogic-tech-carbon-estimator-*.tgz
overwrite: true #TODO - For testing, remove before final merge

0 comments on commit b3f18b3

Please sign in to comment.