From baf82d478c0720801351dba74aeda59a71f7d869 Mon Sep 17 00:00:00 2001 From: Robert Emmett Date: Tue, 21 Jul 2026 12:48:15 -0600 Subject: [PATCH 1/3] chore: update GitHub workflows to use centeva-strix runner --- .github/workflows/build-publish-npm.yml | 8 ++++++-- .github/workflows/pr-tasks.yml | 4 +++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-publish-npm.yml b/.github/workflows/build-publish-npm.yml index 743a3e6..12fc0d7 100644 --- a/.github/workflows/build-publish-npm.yml +++ b/.github/workflows/build-publish-npm.yml @@ -10,7 +10,9 @@ permissions: jobs: get_semver: name: Create semver - runs-on: [self-hosted, linux] + runs-on: centeva-strix + container: + image: ghcr.io/actions/actions-runner:latest steps: - name: Checkout uses: actions/checkout@v4 @@ -34,7 +36,9 @@ jobs: build_and_publish: name: Build centeva-angular-mentions - runs-on: [self-hosted, linux] + runs-on: centeva-strix + container: + image: ghcr.io/actions/actions-runner:latest needs: - get_semver steps: diff --git a/.github/workflows/pr-tasks.yml b/.github/workflows/pr-tasks.yml index 1aed71b..e15f8b1 100644 --- a/.github/workflows/pr-tasks.yml +++ b/.github/workflows/pr-tasks.yml @@ -5,7 +5,9 @@ on: jobs: frontend-checks: name: Build Angular workspace - runs-on: [self-hosted, linux] + runs-on: centeva-strix + container: + image: ghcr.io/actions/actions-runner:latest steps: - uses: actions/checkout@v4 From 3020c6087cf60c32e0aeaef55c7c33e9763434de Mon Sep 17 00:00:00 2001 From: Robert Emmett Date: Tue, 21 Jul 2026 13:19:50 -0600 Subject: [PATCH 2/3] Fixes runner issues --- .github/workflows/build-publish-npm.yml | 43 +++++++++---------------- .github/workflows/pr-tasks.yml | 33 +++++++++---------- 2 files changed, 30 insertions(+), 46 deletions(-) diff --git a/.github/workflows/build-publish-npm.yml b/.github/workflows/build-publish-npm.yml index 12fc0d7..e4eef3c 100644 --- a/.github/workflows/build-publish-npm.yml +++ b/.github/workflows/build-publish-npm.yml @@ -5,63 +5,50 @@ on: - "v[0-9]+.[0-9]+.[0-9]+" - "v[0-9]+.[0-9]+.[0-9]+-pre.[0-9]+" permissions: - id-token: write + id-token: write # Required for OIDC contents: read jobs: get_semver: name: Create semver - runs-on: centeva-strix - container: - image: ghcr.io/actions/actions-runner:latest + runs-on: [self-hosted, linux] steps: - name: Checkout uses: actions/checkout@v4 with: fetch-depth: 0 - - - name: Verify commit is on main for safety - run: git branch --remote --contains | grep origin/main + + - name: Verify commit is on master for safety + run: git branch --remote --contains | grep origin/master - name: Install GitVersion uses: gittools/actions/gitversion/setup@v0.9.7 with: versionSpec: "5.x" - - name: Determine Version id: gitversion uses: gittools/actions/gitversion/execute@v0.9.7 - outputs: semVer: ${{ steps.gitversion.outputs.semVer }} - build_and_publish: name: Build centeva-angular-mentions - runs-on: centeva-strix - container: - image: ghcr.io/actions/actions-runner:latest - needs: - - get_semver + runs-on: [self-hosted, linux] + needs: get_semver steps: - name: Checkout uses: actions/checkout@v4 - - - name: Setup Node - uses: actions/setup-node@v4 + - uses: actions/setup-node@v4 with: node-version: 24.18.0 - - - name: Set package version + - name: Version run: | cd ./projects/angular-mentions npm version ${{ needs.get_semver.outputs.semVer }} --git-tag-version=false - - - name: Install dependencies - run: npm ci - - - name: Build library (production) - run: npx ng build angular-mentions --configuration production - + - name: Build + run: | + npm ci + npx ng build angular-mentions --configuration production - name: Publish run: | cd ./dist/centeva-angular-mentions - npm publish --ignore-scripts --access public + # OIDC will automatically authenticate if no manual token config is set + npm publish --access public --no-git-tag-version --ignore-scripts diff --git a/.github/workflows/pr-tasks.yml b/.github/workflows/pr-tasks.yml index e15f8b1..56a9079 100644 --- a/.github/workflows/pr-tasks.yml +++ b/.github/workflows/pr-tasks.yml @@ -4,19 +4,21 @@ on: types: [opened, reopened, synchronize, edited] jobs: frontend-checks: - name: Build Angular workspace + name: Test Angular workspace runs-on: centeva-strix + permissions: + contents: read + packages: write container: image: ghcr.io/actions/actions-runner:latest steps: - uses: actions/checkout@v4 - - - uses: actions/setup-node@v4 + + - uses: actions/setup-node@v1 with: node-version: 24.x - - - name: Cache npm - uses: actions/cache@v4 + - name: Cache node modules + uses: actions/cache@v3 env: cache-name: cache-node-modules with: @@ -26,21 +28,16 @@ jobs: ${{ runner.os }}-build-${{ env.cache-name }}- ${{ runner.os }}-build- ${{ runner.os }}- - - - name: Install dependencies - run: npm ci --cache ~/.npm - + - name: Setup frontend + run: | + npm ci --cache ~/.npm - name: Lint run: npx ng lint - - name: Build library run: npx ng build angular-mentions - - name: Build demo app run: npx ng build demo-app - - - name: Test library - run: npx ng test angular-mentions --watch=false - - - name: Test demo app - run: npx ng test demo-app --watch=false + - name: Test + run: | + npx ng test angular-mentions --watch=false + npx ng test demo-app --watch=false From f08b9860bad8a9c6f060e36716aa4f02e70c0f54 Mon Sep 17 00:00:00 2001 From: Robert Emmett Date: Tue, 21 Jul 2026 13:49:25 -0600 Subject: [PATCH 3/3] Use ubuntu-latest! --- .github/workflows/build-publish-npm.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-publish-npm.yml b/.github/workflows/build-publish-npm.yml index e4eef3c..1b8211c 100644 --- a/.github/workflows/build-publish-npm.yml +++ b/.github/workflows/build-publish-npm.yml @@ -10,7 +10,7 @@ permissions: jobs: get_semver: name: Create semver - runs-on: [self-hosted, linux] + runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 @@ -31,7 +31,7 @@ jobs: semVer: ${{ steps.gitversion.outputs.semVer }} build_and_publish: name: Build centeva-angular-mentions - runs-on: [self-hosted, linux] + runs-on: ubuntu-latest needs: get_semver steps: - name: Checkout