mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-15 10:15:17 +00:00
refactor(workflow): switches publish workflow to use bun
This commit is contained in:
3 files changed
+7
-12
No files matched your search
@@ -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
|
|
||||||
@@ -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
@@ -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",
|
||||||
|
|||||||
Reference in new issue
Block a user