mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-02 17:53:30 +00:00
Release 8.0.3 - Fix PNG signature images in PDF viewer
This commit is contained in:
@@ -4,24 +4,32 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
dry-run:
|
dry-run:
|
||||||
description: 'Dry run (skip actual npm publish)'
|
description: 'enable dry-run on artifact push'
|
||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
|
id-token: write # Required for OIDC
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: false
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
LOG_LEVEL: "ERROR"
|
||||||
NODE_OPTIONS: "--max-old-space-size=5120"
|
NODE_OPTIONS: "--max-old-space-size=5120"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release-npm:
|
||||||
timeout-minutes: 45
|
timeout-minutes: 45
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
id-token: write # Required for OIDC
|
||||||
|
contents: read
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout repository
|
||||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
@@ -32,31 +40,29 @@ jobs:
|
|||||||
node-version-file: '.nvmrc'
|
node-version-file: '.nvmrc'
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: install
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
- name: Build libraries
|
- name: build libraries
|
||||||
run: |
|
run: |
|
||||||
npm run build:libs
|
npm run build:libs
|
||||||
npm run build:schematics
|
npm run build:schematics
|
||||||
|
|
||||||
- name: Setup NPM Registry
|
# Versions are already set in package.json files (8.0.3-A.1 / js-api 9.0.3-A.1),
|
||||||
if: ${{ !inputs.dry-run }}
|
# so no bumpversion step here.
|
||||||
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
||||||
|
name: release libraries Npm registry
|
||||||
with:
|
with:
|
||||||
node-version-file: '.nvmrc'
|
node-version-file: '.nvmrc'
|
||||||
registry-url: 'https://${{ vars.NPM_REGISTRY_ADDRESS }}'
|
registry-url: 'https://${{ vars.NPM_REGISTRY_ADDRESS }}'
|
||||||
scope: '@alfresco'
|
scope: '@alfresco'
|
||||||
|
|
||||||
- name: Publish to NPM
|
# npmjs auth here is OIDC trusted publishing (no token, same as develop),
|
||||||
if: ${{ !inputs.dry-run }}
|
# which requires npm >= 11.5.1 while .nvmrc pins node 22 (npm 10.9).
|
||||||
run: npm run publish -- --tag=branch
|
- name: upgrade npm
|
||||||
env:
|
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }}
|
|
||||||
|
|
||||||
- name: Dry run summary
|
|
||||||
if: ${{ inputs.dry-run }}
|
|
||||||
run: |
|
run: |
|
||||||
echo "✅ Build completed successfully"
|
npm install -g npm@11
|
||||||
echo "📦 Packages ready to publish with tag: branch"
|
npm --version
|
||||||
echo "🔒 Dry run enabled - skipped npm publish"
|
echo "registry: $(npm config get registry)"
|
||||||
|
|
||||||
|
- run: npx nx run-many -t npm-publish --tag=branch ${{ inputs.dry-run && '--dry-run' || '' }}
|
||||||
|
|||||||
Reference in New Issue
Block a user