Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion .github/workflows/PublishNpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,21 @@ jobs:
with:
node-version: '24' # Includes a version of npm higher than 11.5.1, which is needed for OIDC

- name: Release Tag
id: tag
run: |
release="${{ matrix.release.version }}"
latest="$(npm view @mendix/${{ matrix.release.package }} dist-tags.latest)"
older="$(npx semver@7.8.5 "$latest" "$release" 2>/dev/null | head -n 1)"
tag="latest"
if [[ "$latest" != "$older" ]]; then
tag="$(echo "$release" | sed -E 's/^([0-9]+\.[0-9]+).[0-9]+$/\1-latest/')"
fi
printf 'RELEASE_TAG=%s' "$tag" >> "$GITHUB_OUTPUT"


- name: Publish package
working-directory: ./packages/${{ matrix.release.package }}
run: npm publish mendix-${{ matrix.release.package }}-${{matrix.release.version }}.tgz
run: npm publish --tag ${{ vars.tag }} mendix-${{ matrix.release.package }}-${{matrix.release.version }}.tgz
variables:
tag: ${{ steps.tag.outputs.RELEASE_TAG }}
8 changes: 4 additions & 4 deletions .github/workflows/ShaCheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ name: Ensure SHA pinned actions
on:
push:
branches:
- 'master'
- 'version/*'
- master
- version/*
pull_request:
branches:
- 'master'
- 'version/*'
- master
- version/*

jobs:
harden_security:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/TestAndBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ name: Test & Build
on:
push:
branches:
- 'master'
- 'version/*'
- master
- version/*
paths:
- 'pnpm-lock.yaml'
- 'packages/**'
- '.github/workflows/TestAndBuild.yml'
pull_request:
branches:
- 'master'
- 'version/*'
- master
- version/*
paths:
- 'pnpm-lock.yaml'
- 'packages/**'
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/TestPWTCommands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ name: Script tests
on:
push:
branches:
- 'master'
- 'version/*'
- master
- version/*
paths:
- 'pnpm-lock.yaml'
- 'packages/generator-widget/**'
- 'packages/pluggable-widgets-tools/**'
- 'packages/command-tests/**'
pull_request:
branches:
- 'master'
- 'version/*'
- master
- version/*
paths:
- 'pnpm-lock.yaml'
- 'packages/generator-widget/**'
Expand Down
Loading