From 384e71a359322f10eb1fbfb5c4a97d472bccc8db Mon Sep 17 00:00:00 2001 From: Jonathan Philipp Date: Fri, 23 Jan 2026 14:59:54 +0100 Subject: [PATCH 1/3] chore: update ci-workflow for trusted-publishing --- .github/workflows/release-next.yml | 25 --------------------- .github/workflows/release.yml | 36 +++++++++++++++++++++++++----- 2 files changed, 31 insertions(+), 30 deletions(-) delete mode 100644 .github/workflows/release-next.yml diff --git a/.github/workflows/release-next.yml b/.github/workflows/release-next.yml deleted file mode 100644 index bbdf73f..0000000 --- a/.github/workflows/release-next.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Release Next -on: - push: - branches: - - next -jobs: - release: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: '20.x' - registry-url: 'https://registry.npmjs.org' - - name: Set outputs - id: vars - run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" - - run: git config --global user.name "GitHub CD bot" - - run: git config --global user.email "info@networkteam.com" - - run: npm version prerelease --preid=${{ steps.vars.outputs.sha_short }} - - run: yarn install - - run: yarn build - - run: npm publish --tag next - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9a2d304..a40b7e4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,18 +1,44 @@ name: Release on: release: - types: [created] + types: [released] + push: + branches: + - next + +permissions: + id-token: write + contents: read + jobs: release: runs-on: ubuntu-latest + if: github.event_name == 'release' && github.event.action == 'released' steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 with: node-version: '20.x' registry-url: 'https://registry.npmjs.org' - run: yarn install - run: yarn build - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + + release-next: + runs-on: ubuntu-latest + if: github.ref == 'refs/heads/next' + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 + with: + node-version: '20.x' + registry-url: 'https://registry.npmjs.org' + - name: Set outputs + id: vars + run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" + - run: git config --global user.name "GitHub CD bot" + - run: git config --global user.email "info@networkteam.com" + - run: npm version prerelease --preid=${{ steps.vars.outputs.sha_short }} + - run: yarn install + - run: yarn build + - run: npm publish --tag next From c80d7b3aeca89671ea30a0d062404b2dc9e070f6 Mon Sep 17 00:00:00 2001 From: Jonathan Philipp Date: Tue, 27 Jan 2026 10:59:06 +0100 Subject: [PATCH 2/3] chore: bump node versions and actions --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a40b7e4..6b08012 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,9 +16,9 @@ jobs: if: github.event_name == 'release' && github.event.action == 'released' steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: '20.x' + node-version: '24.x' registry-url: 'https://registry.npmjs.org' - run: yarn install - run: yarn build @@ -31,7 +31,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: - node-version: '20.x' + node-version: '24.x' registry-url: 'https://registry.npmjs.org' - name: Set outputs id: vars From 2eddc95ad13bcb12addf01736d5be1c1ae4761bf Mon Sep 17 00:00:00 2001 From: Jonathan Philipp Date: Tue, 27 Jan 2026 12:55:23 +0100 Subject: [PATCH 3/3] chore: bump package version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4ac369c..851df75 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@networkteam/zebra-utils", - "version": "0.5.0", + "version": "0.5.1", "author": "networkteam GmbH", "license": "MIT", "publishConfig": {