From 1ff4a2e5539e4a3cc81582691bf2e18c80201299 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20R=C3=B8svik?= Date: Wed, 28 Jan 2026 15:49:00 +0100 Subject: [PATCH 1/2] chore: add `repository.url` to package.json --- .github/workflows/release.yml | 23 ++++++++++++----------- package.json | 3 +++ 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ac21722..220c3c3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,6 +3,7 @@ on: push: branches: - main + - rosvik/test-release-2 permissions: id-token: write @@ -15,23 +16,23 @@ jobs: release-please: runs-on: ubuntu-latest steps: - - uses: googleapis/release-please-action@v4 - id: release - with: - release-type: node + # - uses: googleapis/release-please-action@v4 + # id: release + # with: + # release-type: node - uses: actions/checkout@v4 # Ensure that a publication only occurs when a new release is created - if: ${{ steps.release.outputs.release_created }} + # if: ${{ steps.release.outputs.release_created }} - uses: actions/setup-node@v4 with: node-version: 22 registry-url: 'https://registry.npmjs.org' - if: ${{ steps.release.outputs.release_created }} - - run: npm install -g npm@11 # 11.5.1 needed for OIDC / Trusted publishing - if: ${{ steps.release.outputs.release_created }} + # if: ${{ steps.release.outputs.release_created }} + - run: npm install -g npm@11 # 11.5.1 needed for OIDC / Trusted publish + # if: ${{ steps.release.outputs.release_created }} - run: yarn install --frozen-lockfile - if: ${{ steps.release.outputs.release_created }} + # if: ${{ steps.release.outputs.release_created }} - run: yarn build - if: ${{ steps.release.outputs.release_created }} + # if: ${{ steps.release.outputs.release_created }} - run: npm publish --access public - if: ${{ steps.release.outputs.release_created }} + # if: ${{ steps.release.outputs.release_created }} diff --git a/package.json b/package.json index c56a120..65f9899 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,9 @@ "name": "@atb-as/utils", "version": "6.1.3", "description": "Shared utility methods and types for AtB products", + "repository": { + "url": "https://github.com/AtB-AS/utils" + }, "main": "lib/index.js", "module": "lib/index.js", "types": "lib/index.d.ts", From 7846631a20e9eded7728b33bbbc1facfad1c1dfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20R=C3=B8svik?= Date: Wed, 28 Jan 2026 15:52:20 +0100 Subject: [PATCH 2/2] revert: gh action changes --- .github/workflows/release.yml | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 220c3c3..ac21722 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,7 +3,6 @@ on: push: branches: - main - - rosvik/test-release-2 permissions: id-token: write @@ -16,23 +15,23 @@ jobs: release-please: runs-on: ubuntu-latest steps: - # - uses: googleapis/release-please-action@v4 - # id: release - # with: - # release-type: node + - uses: googleapis/release-please-action@v4 + id: release + with: + release-type: node - uses: actions/checkout@v4 # Ensure that a publication only occurs when a new release is created - # if: ${{ steps.release.outputs.release_created }} + if: ${{ steps.release.outputs.release_created }} - uses: actions/setup-node@v4 with: node-version: 22 registry-url: 'https://registry.npmjs.org' - # if: ${{ steps.release.outputs.release_created }} - - run: npm install -g npm@11 # 11.5.1 needed for OIDC / Trusted publish - # if: ${{ steps.release.outputs.release_created }} + if: ${{ steps.release.outputs.release_created }} + - run: npm install -g npm@11 # 11.5.1 needed for OIDC / Trusted publishing + if: ${{ steps.release.outputs.release_created }} - run: yarn install --frozen-lockfile - # if: ${{ steps.release.outputs.release_created }} + if: ${{ steps.release.outputs.release_created }} - run: yarn build - # if: ${{ steps.release.outputs.release_created }} + if: ${{ steps.release.outputs.release_created }} - run: npm publish --access public - # if: ${{ steps.release.outputs.release_created }} + if: ${{ steps.release.outputs.release_created }}