mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-05-19 01:26:35 +00:00
refactor(workflow): switches publish workflow to use bun
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -3,7 +3,6 @@ let
|
||||
inherit (nixpkgs) pkgs;
|
||||
|
||||
nixPackages = with pkgs; [
|
||||
nodejs-18_x
|
||||
yarn
|
||||
docker-compose
|
||||
dnsutils
|
||||
|
||||
+2
-2
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user