Skip to content

Commit

Permalink
Standalone pkg (#842)
Browse files Browse the repository at this point in the history
Co-authored-by: Casper da Costa-Luis <casper.dcl@physics.org>
  • Loading branch information
DavidGOrtega and casperdcl committed Dec 17, 2021
1 parent 041f367 commit e338266
Show file tree
Hide file tree
Showing 5 changed files with 1,088 additions and 1,101 deletions.
39 changes: 26 additions & 13 deletions .github/workflows/test-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Test & Deploy
on:
schedule:
- cron: '0 9 * * 1' # M H d m w (Mondays at 9:00)
- cron: '0 8 * * 1' # M H d m w (Mondays at 8:00)
push:
tags: ['v*']
pull_request_target:
Expand Down Expand Up @@ -67,16 +67,15 @@ jobs:
shell: bash
run: |
# https://github.com/npm/npm/issues/18503#issuecomment-347579469
npm pack && npm i -g --no-save ./*cml*.tgz
cml --version
cml runner --version
cml publish --version
cml pr --version
npm pack && npm install -g --no-save ./*cml*.tgz
for cmd in '' runner publish pr; do
cml $cmd --version
done
- if: matrix.system != 'windows'
run: |
cml-runner --version
cml-publish --version
cml-pr --version
for cmd in runner publish pr; do
cml-$cmd --version
done
packages:
needs: [lint, test, test-os]
runs-on: ubuntu-latest
Expand All @@ -93,20 +92,34 @@ jobs:
--dry-run' }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: build
run: |
npx --yes pkg package.json
for cmd in '' runner publish pr; do
build/cml-linux $cmd --version
done
release:
if: github.event_name == 'push'
needs: packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: meta
name: Metadata
run: echo ::set-output name=tag::${GITHUB_REF#refs/tags/}
- id: build
name: build
run: |
echo ::set-output name=tag::${GITHUB_REF#refs/tags/}
npm install
npx --yes pkg package.json
- uses: softprops/action-gh-release@v1
with:
name: CML ${{ steps.meta.outputs.tag }}
name: CML ${{ steps.build.outputs.tag }}
draft: true
generate_release_notes: true
files: |
build/cml-linux
build/cml-macos
env:
GITHUB_TOKEN: ${{ secrets.TEST_GITHUB_TOKEN }}
images:
runs-on: ubuntu-latest
needs: packages
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ terraform.*
!terraform.js
!terraform.test.js
crash.log
/build

7 comments on commit e338266

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Comment

CML watermark

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Comment

CML watermark

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Comment

CML watermark

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Comment

CML watermark

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Comment

CML watermark

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Comment

CML watermark

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Comment

CML watermark

Please sign in to comment.