refactor(workflow): switches publish workflow to use bun

This commit is contained in:
Akshay Nair committed 2023-09-17 14:34:10 +05:30
1 parent f97bf992c4
commit 3c6fb2f0e0
3 files changed
+7 -12

No files matched your search

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