mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
* [ACS-10765] Switch to NPM trusted publishing * [ACS-10765] CR fixes * [ACS-10765] Set NPM_TAG without github env usage * [ACS-10765] CR fixes * [ACS-10765] CR fix
32 lines
847 B
YAML
32 lines
847 B
YAML
name: 'Check NPM bundle'
|
|
description: 'check npm bundle'
|
|
|
|
inputs:
|
|
branch_name:
|
|
description: "override GITHUB_REF_NAME"
|
|
required: false
|
|
default: ${{ github.ref_name }}
|
|
|
|
runs:
|
|
using: "composite"
|
|
|
|
steps:
|
|
- name: load "NPM TAG"
|
|
id: set-npm-tag
|
|
uses: ./.github/actions/set-npm-tag
|
|
with:
|
|
branch_name: ${{ inputs.branch_name }}
|
|
- name: check npm bundle
|
|
shell: bash
|
|
id: sha_out
|
|
env:
|
|
TAG_NPM: ${{ steps.set-npm-tag.outputs.npm-tag }}
|
|
run: |
|
|
if [[ -z $TAG_NPM ]]; then
|
|
echo "TAG_NPM not set, aborting"
|
|
exit 1
|
|
fi
|
|
ADF_VERSION=$(npm view @alfresco/adf-core@${TAG_NPM} version)
|
|
echo "check bundle on TAG_NPM='${TAG_NPM}' and ADF_VERSION='${ADF_VERSION}'"
|
|
./scripts/github/build/npm-check-bundles.sh -v ${ADF_VERSION}
|