Skip to content

Commit

Permalink
Update artifact logic
Browse files Browse the repository at this point in the history
  • Loading branch information
decs committed Jan 28, 2024
1 parent 34da32a commit 0d54bbc
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,20 @@ jobs:
working-directory: packages/typeschema
run: pnpm build
- name: Create package
id: pack
working-directory: packages/typeschema
run: pnpm pack
run: |
pnpm pack
echo "tar=$(find -name '*.tgz')" >> $GITHUB_OUTPUT
cp *.tgz ..
- name: Lint package
working-directory: packages/typeschema
run: pnpm lint:package
- name: Upload package
uses: actions/upload-artifact@v3
with:
name: package.tgz
path: decs-typeschema-*.tgz
name: npm-package-typeschema
path: ${{steps.pack.outputs.tar}}

bundle_with_vite:
needs: build
Expand All @@ -62,7 +66,7 @@ jobs:
- name: Download package
uses: actions/download-artifact@v3
with:
name: package.tgz
name: npm-package-typeschema
- name: Add package
working-directory: sample
run: pnpm install $(ls ../decs-typeschema-*.tgz) zod
Expand Down Expand Up @@ -97,7 +101,7 @@ jobs:
- name: Download package
uses: actions/download-artifact@v3
with:
name: package.tgz
name: npm-package-typeschema
- name: Add package
working-directory: sample
run: pnpm install $(ls ../decs-typeschema-*.tgz) zod
Expand Down Expand Up @@ -134,7 +138,7 @@ jobs:
- name: Download package
uses: actions/download-artifact@v3
with:
name: package.tgz
name: npm-package-typeschema
- name: Add package
working-directory: sample
run: pnpm install $(ls ../decs-typeschema-*.tgz) zod
Expand Down

0 comments on commit 0d54bbc

Please sign in to comment.