Skip to content

Commit

Permalink
fix(ci): Fix asset copying
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidHancu committed Feb 27, 2023
1 parent aee9ecc commit 4c2376f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 27 deletions.
27 changes: 7 additions & 20 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,26 +72,13 @@ jobs:
command: build
args: --package turboprisma_cli --release --target ${{ matrix.target }}

- name: Create CLI binary package folder
run: mkdir npm-release-root

- name: Copy turboprisma_cli${{ matrix.output }} to binary package folder
uses: chpoit/js-copy-github-action@master
with:
source: "target/${{ matrix.target }}/release/turboprisma_cli${{ matrix.output }}"
target: "npm-release-root/turboprisma_cli${{ matrix.output }}"

- name: Copy LICENSE to CLI binary package folder
uses: chpoit/js-copy-github-action@master
with:
source: "LICENSE"
target: "npm-release-root/LICENSE"

- name: Copy README to CLI binary package folder
uses: chpoit/js-copy-github-action@master
with:
source: "assets/README.md"
target: "npm-release-root/README.md"
- name: Prepare CLI binary package folder
shell: bash
run: |
mkdir npm-release-root
mv target/${{ matrix.target }}/release/turboprisma_cli${{ matrix.output }} npm-release-root/turboprisma_cli${{ matrix.output }}
mv LICENSE.md npm-release-root/LICENSE.md
mv assets/README.md npm-release-root/README.md
- name: Read CLI package.json
id: cli
Expand Down
File renamed without changes.
14 changes: 7 additions & 7 deletions packages/turboprisma/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "turboprisma",
"version": "0.1.0",
"version": "0.1.1",
"description": "Incredibly fast and performant Prisma runtime that provides an unified access framework, abstractions and new features on top of the Prisma schema, CLI and tools.",
"bin": {
"turboprisma": "./turboprisma_cli"
Expand All @@ -14,12 +14,12 @@
"author": "DavidHancu",
"license": "Apache-2.0",
"optionalDependencies": {
"@turboprisma/cli-linux-x64": "0.1.0",
"@turboprisma/cli-linux-arm64": "0.1.0",
"@turboprisma/cli-darwin-x64": "0.1.0",
"@turboprisma/cli-darwin-arm64": "0.1.0",
"@turboprisma/cli-windows-x64": "0.1.0",
"@turboprisma/cli-windows-arm64": "0.1.0"
"@turboprisma/cli-linux-x64": "0.1.1",
"@turboprisma/cli-linux-arm64": "0.1.1",
"@turboprisma/cli-darwin-x64": "0.1.1",
"@turboprisma/cli-darwin-arm64": "0.1.1",
"@turboprisma/cli-windows-x64": "0.1.1",
"@turboprisma/cli-windows-arm64": "0.1.1"
},
"repository": "https://github.com/DavidHancu/turboprisma",
"bugs": "https://github.com/DavidHancu/turboprisma/issues"
Expand Down

0 comments on commit 4c2376f

Please sign in to comment.