Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

Commit

Permalink
ci: fix ci packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
starsprung committed Jan 4, 2021
1 parent f087f5f commit b607425
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ jobs:
env:
HUSKY_SKIP_INSTALL: 1

- name: Package
if: ${{ github.event.workflow_run.conclusion == 'success' }}
run: npm run build && npm run pkg

- name: Release
if: ${{ github.event.workflow_run.conclusion == 'success' }}
env:
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
"coverage": "jest --coverage --no-cache",
"docs": "typedoc",
"lint": "eslint src",
"pkg": "rimraf pkg && for PLATFORM in macos linux win; do pkg -t \"node14-${PLATFORM}-x64\" --out-path \"pkg/${npm_package_name}-${PLATFORM}\" .; done",
"pkg": "for PLATFORM in macos linux win; do pkg -t \"node14-${PLATFORM}-x64\" --out-path \"pkg/${npm_package_name}-${PLATFORM}\" .; done",
"postpkg": "for PKG in pkg/*; do tar czf \"${PKG}.tar.gz\" \"${PKG}\"; zip -r \"${PKG}.zip\" \"${PKG}\"; done",
"prepack": "npm run clean && npm run build",
"postpack": "npm run pkg",
"start": "node lib/index.js",
"start:dev": "ts-node --dir src index.ts",
"test": "jest",
Expand Down

0 comments on commit b607425

Please sign in to comment.