From 4d66224f6a39bf8251c9a08bc802d57a98cfeb29 Mon Sep 17 00:00:00 2001 From: Timur Moziev Date: Wed, 18 Sep 2024 09:55:12 +0000 Subject: [PATCH] comply anca --- .devcontainer/Dockerfile | 2 +- .github/workflows/release.yml | 32 ++++++++++++++++++++++++++++++-- .github/workflows/test.yml | 2 +- .prettierignore | 3 +++ README.md | 12 ++++++++++++ anca.json | 5 +++-- src/cinnabar.ts | 4 ++-- 7 files changed, 52 insertions(+), 8 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 677081a..e37d66b 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,3 +1,3 @@ -FROM docker.io/node:22.6.0 +FROM docker.io/node:22.8.0 USER node diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ea72dae..7aefa4a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,7 +15,7 @@ jobs: name: "Checkout repo" - uses: actions/setup-node@v4 with: - node-version: 22.6.0 + node-version: 22.8.0 registry-url: https://registry.npmjs.org/ name: "Install Node.js" - run: npm ci @@ -26,6 +26,34 @@ jobs: env: NODE_AUTH_TOKEN: ${{secrets.npm_token}} name: "Build distribution bundle and publish to registry" + build-bundle: + permissions: write-all + runs-on: ubuntu-latest + env: + ANCA_CI: true + name: Build bundle + steps: + - uses: actions/checkout@v4 + name: Checkout repo + - uses: actions/setup-node@v4 + with: + node-version: 22.8.0 + name: Install Node.js + - run: npm ci + name: Install dependencies + - run: npm run build:bundle + name: Build bundle + - run: | + mv build/bundle/index.js build/bundle/${{ github.event.repository.name }}-${{ github.ref_name }}.js + shell: bash + name: Rename bundle + - uses: softprops/action-gh-release@v1 + with: + files: | + build/bundle/${{ github.event.repository.name }}-${{ github.ref_name }}.js + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + name: Attach bundle to release build-executables: permissions: write-all runs-on: ${{ matrix.os }} @@ -40,7 +68,7 @@ jobs: name: Checkout repo - uses: actions/setup-node@v4 with: - node-version: 22.6.0 + node-version: 22.8.0 name: Install Node.js - run: npm ci name: Install dependencies diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c6f2932..4afc75b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node: [18.20.4, 20.16.0, 22.6.0] + node: [18.20.4, 20.17.0, 22.8.0] name: Test repo on Node.js ${{ matrix.node }} steps: - uses: actions/checkout@v4 diff --git a/.prettierignore b/.prettierignore index 3130039..97ee541 100644 --- a/.prettierignore +++ b/.prettierignore @@ -25,3 +25,6 @@ CHANGELOG.md # Anca anca.json +esbuild.js +eslint.config.js +openapi.json diff --git a/README.md b/README.md index 61d69e3..d983ae0 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,18 @@ Organize workspaces and manage projects deployment fast and easy with Anca, Proj npm install -g anca ``` +### Bundled script + +[Get the latest bundled script](https://github.com/cinnabar-forge/anca/releases/latest). + +This script has everything to run the project without any extra dependencies. You need Node.js binary to run it. + +### Binary + +[Get the latest binaries](https://github.com/cinnabar-forge/anca/releases/latest). + +If you want to use the app with a command line, rename it to `anca` or `anca.exe` and add the location to `PATH`. + ## Contributing Visit [`CONTRIBUTING.md`](CONTRIBUTING.md). diff --git a/anca.json b/anca.json index 34b4ed1..903c566 100644 --- a/anca.json +++ b/anca.json @@ -13,8 +13,8 @@ "dataVersion": 0, "version": { "latest": "0.1.0-dev.2", - "latestNext": "0.1.0-dev.2+next.20240918_093908", - "timestamp": 1726652348 + "latestNext": "0.1.0-dev.2+next.20240918_095347", + "timestamp": 1726653227 }, "files": [ { @@ -55,6 +55,7 @@ "text": "Anca", "textLong": "Anca Project Manager" }, + "public": true, "stack": "nodejs", "type": "app" } diff --git a/src/cinnabar.ts b/src/cinnabar.ts index 513c5b2..5fa95dd 100644 --- a/src/cinnabar.ts +++ b/src/cinnabar.ts @@ -1,4 +1,4 @@ // This file was generated by Cinnabar Meta. Do not edit. -export const CINNABAR_PROJECT_TIMESTAMP = 1726652348; -export const CINNABAR_PROJECT_VERSION = "0.1.0-dev.2+next.20240918_093908"; +export const CINNABAR_PROJECT_TIMESTAMP = 1726653227; +export const CINNABAR_PROJECT_VERSION = "0.1.0-dev.2+next.20240918_095347";