No description
  • TypeScript 100%
Find a file
TR c73c5971a3
All checks were successful
Build and Publish / publish (push) Successful in 59s
Merge pull request 'fix: cleanup lock file' (#7) from temir/vode-app-cldr-supplemental:dev into main
Reviewed-on: #7
2026-07-05 16:25:22 +02:00
.forgejo/workflows chore: updated from ts-lib@0.15.0 template 2026-07-05 12:39:14 +02:00
cldr@a79b499916 feat: added cldr/ submodule 2026-06-18 11:36:36 +02:00
scripts feat: added scripts/build-cldr-supplemental-data.ts 2026-06-19 19:47:06 +02:00
src feat: added scripts/build-cldr-supplemental-data.ts 2026-06-19 19:47:06 +02:00
tests feat: added stripRegions 2026-06-19 17:27:42 +02:00
.gitignore chore: added package files from ts-lib@0.13.5+338029d tempalte 2026-06-18 10:16:34 +02:00
.gitmodules feat: added cldr/ submodule 2026-06-18 11:36:36 +02:00
.npmrc fix: .npmrc with scope registry config is required for the workflow 2026-07-03 12:25:00 +02:00
CHANGELOG.md chore: added package files from ts-lib@0.13.5+338029d tempalte 2026-06-18 10:16:34 +02:00
LICENSE feat: added basic setup 2026-06-19 09:44:03 +02:00
package-lock.json fix: cleanup lock file 2026-07-05 16:24:57 +02:00
package.json fix: cleanup lock file 2026-07-05 16:24:57 +02:00
README.md chore: updated from ts-lib@0.15.0 template 2026-07-05 12:39:14 +02:00
tsconfig.build.json chore: added package files from ts-lib@0.13.5+338029d tempalte 2026-06-18 10:16:34 +02:00
tsconfig.json chore: added package files from ts-lib@0.13.5+338029d tempalte 2026-06-18 10:16:34 +02:00

Introduction

<INTRO TEXT>

Table of Contents

  1. Quick Start
  2. Documentation
  3. DevOps
    1. Change Management
    2. Registry
    3. CI/CD Workflows

Quick Start

<QUICK START INSTRUCTIONS>

Documentation

<DOCUMENTATION>

DevOps

npm install
npm update

npm run clean
npm run build
npm run tests

npm run dev
git fetch upstream
git fetch origin
git fetch . upstream/main:origin/main
git fetch . origin/main:main
git push origin main
git merge --ff-only main
git push

Change Management

  1. Create a new branch for the change.
  2. Make the changes and commit.
  3. Bump the version in package.json.
  4. Add an entry for the new version in CHANGELOG.md.
  5. Pull-request the branch.
  6. Ensure package artifacts are current.
  7. Publish.

Registry

.npmrc:

@vode-app:registry=https://git.chimps.quest/api/packages/vode-app/npm/
//git.chimps.quest/api/packages/vode-app/npm/:_authToken=${VODE_APP_REGISTRY_AUTH_TOKEN}

or bunfig.toml:

[install.scopes]
"vode-app" = { url = "https://git.chimps.quest/api/packages/vode-app/npm/", token = "$VODE_APP_REGISTRY_AUTH_TOKEN" }
# git.chimps.quest/api/packages/vode-app/npm/
export VODE_APP_REGISTRY_AUTH_TOKEN=<AUTH_TOKEN>
# or
$env:VODE_APP_REGISTRY_AUTH_TOKEN = "<AUTH_TOKEN>"
npm publish

CI/CD Workflows

Build and Publish

⚠️ .npmrc configuring the package registry and its authentication token is required for the workflow to work.

Parameter Type Description
RUNNER_LABEL Variable The label of the runner to use for the workflow.
ACCESS_TOKEN Secret The authentication token for the package registry.

.github/workflows/build-publish.yml:

name: Build and Publish

on:
  push:
    branches:
      - main

jobs:
  publish:
    runs-on: ${{ vars.RUNNER_LABEL }}
    steps:
      - uses: actions/checkout@v4
        with:
          submodules: true

      - name: Install
        env:
          VODE_APP_REGISTRY_AUTH_TOKEN: ${{ secrets.ACCESS_TOKEN }}
        run: npm ci

      - name: Build
        run: npm run build

      - name: Test
        run: npm run tests

      - name: Publish
        env:
          VODE_APP_REGISTRY_AUTH_TOKEN: ${{ secrets.ACCESS_TOKEN }}
        run: |
          PKG_NAME=$(node -p "require('./package.json').name")
          PKG_VERSION=$(node -p "require('./package.json').version")
          NPM_TAG="latest"
          if echo "$PKG_VERSION" | grep -q -- '-'; then
            NPM_TAG="next"
          fi
          if npm view "$PKG_NAME@$PKG_VERSION" version >/dev/null 2>&1; then
            echo "$PKG_NAME@$PKG_VERSION already published, skipping."
          else
            npm publish --tag "$NPM_TAG"
          fi

cldr/

# add submodule
git submodule add https://github.com/unicode-org/cldr-json.git cldr/

# update submodule
git submodule update --init --recursive cldr/

# remove submodule
git submodule deinit -f cldr/
git rm -f cldr/
rm .git/modules/cldr/ -Force -Recurse