Skip to content

Commit

Permalink
Updated backend building and publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
prefixaut committed Feb 12, 2022
1 parent 8aee8fd commit 2120977
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ jobs:
run: yarn backend:build

- name: Create Release Package
if: ${{ startsWith(github.ref, 'refs/tags/') }}
if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.node == '16' }}
run: yarn backend:package
- name: Release
uses: ncipollo/release-action@v1
if: ${{ startsWith(github.ref, 'refs/tags/') }}
if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.node == '16' }}
with:
artifacts: "backend/bundle/*"
prerelease: ${{ endsWith(github.ref, 'rc') || endsWith(github.ref, 'snapshot') }}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@
"frontend:preview": "vite preview frontend",
"backend:serve": "ts-node-dev backend/src/server.ts",
"backend:build": "tsc -p ./backend/tsconfig.json",
"backend:package": "pkg --compress=brotli --debug --public --out-path=./backend/bundle ./backend/dist/backend/src/server.js"
"backend:package": "pkg --compress=brotli --public --out-path=./backend/bundle ./backend/dist/backend/src/server.js"
}
}

0 comments on commit 2120977

Please sign in to comment.