Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standalone pkg #842

Merged
merged 21 commits into from
Dec 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading