refactor(workflow): switches publish workflow to use bun

This commit is contained in:
Akshay Nair
2023-09-17 14:34:10 +05:30
parent f97bf992c4
commit 3c6fb2f0e0
3 changed files with 7 additions and 12 deletions
+5 -9
View File
@@ -12,13 +12,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: borales/actions-yarn@v2.0.0
- uses: oven-sh/setup-bun@v1
with:
cmd: install --ignore-engines
- name: Running tests
uses: borales/actions-yarn@v2.0.0
with:
cmd: test
bun-version: 1.0.0
- run: bun install
- run: bun test
- name: Publishing records
env:
CI: 1
@@ -30,6 +28,4 @@ jobs:
DOMAIN_API_PORT: ${{ secrets.DOMAIN_API_PORT }}
DOMAIN_DOMAIN: ${{ secrets.DOMAIN_DOMAIN }}
DOMAIN_HOST_IP: ${{ secrets.DOMAIN_HOST_IP }}
uses: borales/actions-yarn@v2.0.0
with:
cmd: publish-records
run: bun run publish-records
-1
View File
@@ -3,7 +3,6 @@ let
inherit (nixpkgs) pkgs;
nixPackages = with pkgs; [
nodejs-18_x
yarn
docker-compose
dnsutils
+2 -2
View File
@@ -6,8 +6,8 @@
"lint": "eslint utils scripts domains --ext .json,.js",
"publish-records": "bun run -b ./scripts/register-domains.js",
"dc": "docker-compose -p is-a-dev",
"dc:start": "yarn dc up",
"dc:shell": "yarn dc run dev /bin/bash"
"dc:start": "bun run dc up",
"dc:shell": "bun run dc run dev /bin/bash"
},
"repository": {
"type": "git",