From d6702d5ca928d5cf9fde5604cdd8ed20cf5ac3a9 Mon Sep 17 00:00:00 2001 From: Mykhailo Zachepylo Date: Mon, 23 Feb 2026 16:36:52 +0200 Subject: [PATCH 1/2] feat(ci): Add package publish workflow --- .github/workflows/publish.yml | 48 +++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..1b56068 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,48 @@ +name: Publish Release +on: + push: + tags: + - v[0-9]+.[0-9]+.[0-9]+ + +permissions: + contents: write + packages: write + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + with: + fetch-depth: 0 + + - uses: actions/setup-node@v6 + with: + node-version: "22.x" + cache: "npm" + registry-url: "https://registry.npmjs.org" + + - name: Install dependencies + run: npm ci + + - name: Build + run: npm run build + + - name: Run tests + run: npm test + + - name: Publish to NPM + run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} + + - name: Create GitHub Release + uses: softprops/action-gh-release@v2 + with: + tag_name: ${{ github.ref_name }} + name: Release ${{ github.ref_name }} + generate_release_notes: true + draft: false + prerelease: false + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From df379afc5aac7b6ddef7a6a49b8761c47cf9aa49 Mon Sep 17 00:00:00 2001 From: Mykhailo Zachepylo Date: Mon, 23 Feb 2026 16:50:04 +0200 Subject: [PATCH 2/2] feat(ci): Replace legacy travis CI with GitHub actions check workflow --- .github/workflows/ci.yml | 32 ++++++++++++++++++++++++++++ .travis.yml | 45 ---------------------------------------- 2 files changed, 32 insertions(+), 45 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..eb20302 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +name: CI + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + test: + runs-on: ubuntu-24.04 + + steps: + - name: Checkout repository + uses: actions/checkout@v5 + + - name: Setup Node.js 22.x + uses: actions/setup-node@v6 + with: + node-version: 22.x + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Build + run: npm run build + + - name: Run tests + run: npm test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f642b70..0000000 --- a/.travis.yml +++ /dev/null @@ -1,45 +0,0 @@ -language: node_js -node_js: - - "10" - - "13" - -env: - - CXX=g++ - -addons: - apt: - sources: - - ubuntu-toolchain-r-test - - llvm-toolchain-precise-3.6 - packages: - - g++-4.8 - - llvm-3.6 - - libstdc++-4.9-dev - - llvm-3.6-dev - - clang-3.6 - -compiler: g++ - -sudo: required - -os: - - linux - - osx - -osx_image: xcode7.2 - -before_install: - - export TSD_GITHUB_TOKEN=8591f447276e1caa1b9636b9c8053d768130464f - - if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90; fi - - node --version - - npm --version - - gcc --version - -script: - - npm test - -cache: - directories: - - $HOME/.node-gyp - - $HOME/.npm - - node_modules