mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
Release 8.0.3 - Fix PNG signature images in PDF viewer
This commit is contained in:
+31
-117
@@ -3,146 +3,60 @@ name: "release"
|
|||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
dry-run-flag:
|
dry-run:
|
||||||
description: 'enable dry-run on artifact push'
|
description: 'Dry run (skip actual npm publish)'
|
||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: false
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- develop
|
|
||||||
- develop-patch*
|
|
||||||
- master
|
|
||||||
- master-patch-*
|
|
||||||
|
|
||||||
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:
|
||||||
GH_COMMIT: ${{ github.sha }}
|
|
||||||
GH_BUILD_NUMBER: ${{ github.run_id }}
|
|
||||||
LOG_LEVEL: "ERROR"
|
|
||||||
NODE_OPTIONS: "--max-old-space-size=5120"
|
NODE_OPTIONS: "--max-old-space-size=5120"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
setup:
|
release:
|
||||||
timeout-minutes: 20
|
timeout-minutes: 45
|
||||||
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
|
|
||||||
name: "Setup"
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
actions: write
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout
|
||||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: ./.github/actions/setup
|
|
||||||
- name: install
|
|
||||||
run: |
|
|
||||||
npm ci
|
|
||||||
npx nx run js-api:bundle
|
|
||||||
npx nx run cli:bundle
|
|
||||||
- uses: ./.github/actions/upload-node-modules-and-artifacts
|
|
||||||
|
|
||||||
release-npm:
|
- name: Setup Node
|
||||||
needs: [setup]
|
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
||||||
outputs:
|
|
||||||
release_version: ${{ steps.set-version.outputs.release_version }}
|
|
||||||
timeout-minutes: 30
|
|
||||||
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
permissions:
|
|
||||||
id-token: write # Required for OIDC
|
|
||||||
contents: read
|
|
||||||
packages: write
|
|
||||||
actions: read
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
node-version-file: '.nvmrc'
|
||||||
- id: setup
|
cache: 'npm'
|
||||||
uses: ./.github/actions/setup
|
|
||||||
- id: set-dryrun
|
- name: Install dependencies
|
||||||
uses: ./.github/actions/enable-dryrun
|
run: npm ci
|
||||||
with:
|
|
||||||
dry-run-flag: ${{ inputs.dry-run-flag }}
|
- name: Build libraries
|
||||||
- uses: ./.github/actions/download-node-modules-and-artifacts
|
|
||||||
- name: Set libraries versions
|
|
||||||
id: set-version
|
|
||||||
run: |
|
|
||||||
set -u;
|
|
||||||
./scripts/github/build/bumpversion.sh
|
|
||||||
- name: Set migrations
|
|
||||||
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
||||||
with:
|
|
||||||
script: |
|
|
||||||
const setMigrations = require('./scripts/github/release/set-migrations.js');
|
|
||||||
setMigrations();
|
|
||||||
- name: build libraries
|
|
||||||
run: |
|
run: |
|
||||||
npm run build:libs
|
npm run build:libs
|
||||||
npm run build:schematics
|
npm run build:schematics
|
||||||
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
|
||||||
name: release libraries GH registry
|
- name: Setup NPM Registry
|
||||||
with:
|
if: ${{ !inputs.dry-run }}
|
||||||
node-version-file: '.nvmrc'
|
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
||||||
registry-url: 'https://npm.pkg.github.com'
|
|
||||||
scope: '@alfresco'
|
|
||||||
- run: npm run publish --tag ${{ steps.setup.outputs.npm-tag }} --provenance=false ${{ steps.set-dryrun.outputs.dryrun }}
|
|
||||||
env:
|
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
- 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'
|
||||||
- run: npm run publish --tag ${{ steps.setup.outputs.npm-tag }} ${{ steps.set-dryrun.outputs.dryrun }}
|
|
||||||
|
|
||||||
create-git-tag:
|
- name: Publish to NPM
|
||||||
runs-on: ubuntu-latest
|
if: ${{ !inputs.dry-run }}
|
||||||
needs: [setup, release-npm]
|
run: npx nx run-many -t npm-publish --tag=branch
|
||||||
if: github.event_name != 'workflow_dispatch'
|
env:
|
||||||
name: Create github tag
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }}
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
||||||
with:
|
|
||||||
fetch-depth: 1
|
|
||||||
- uses: './.github/actions/create-git-tag'
|
|
||||||
with:
|
|
||||||
tagName: ${{ needs.release-npm.outputs.release_version }}
|
|
||||||
|
|
||||||
npm-check-bundle:
|
- name: Dry run summary
|
||||||
needs: [release-npm]
|
if: ${{ inputs.dry-run }}
|
||||||
timeout-minutes: 15
|
run: |
|
||||||
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
|
echo "✅ Build completed successfully"
|
||||||
runs-on: ubuntu-latest
|
echo "📦 Packages ready to publish with tag: branch"
|
||||||
steps:
|
echo "🔒 Dry run enabled - skipped npm publish"
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
||||||
- uses: ./.github/actions/npm-check-bundle
|
|
||||||
|
|
||||||
finalize:
|
|
||||||
if: always()
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
name: Final Results
|
|
||||||
needs: [release-npm, npm-check-bundle]
|
|
||||||
steps:
|
|
||||||
- name: Check job execution status
|
|
||||||
if: >-
|
|
||||||
${{
|
|
||||||
contains(needs.*.result, 'failure')
|
|
||||||
|| contains(needs.*.result, 'cancelled')
|
|
||||||
}}
|
|
||||||
run: exit 1
|
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
"docbuild": "(cd ./tools/doc; npm i) && node tools/doc/node_modules/typedoc/bin/typedoc --tsconfig lib/tsconfig.doc.json && node tools/doc/buildYamlSourceInfo.js docs/docs.json && node ./tools/doc/docProcessor.js",
|
"docbuild": "(cd ./tools/doc; npm i) && node tools/doc/node_modules/typedoc/bin/typedoc --tsconfig lib/tsconfig.doc.json && node tools/doc/buildYamlSourceInfo.js docs/docs.json && node ./tools/doc/docProcessor.js",
|
||||||
"affected:libs": "nx affected:libs",
|
"affected:libs": "nx affected:libs",
|
||||||
"affected:lint": "nx affected:lint",
|
"affected:lint": "nx affected:lint",
|
||||||
|
"build:libs": "nx run-many -t build --configuration=production",
|
||||||
|
"build:schematics": "nx run-many -t build-schematics",
|
||||||
"clean": "rimraf dist node_modules dist/libs"
|
"clean": "rimraf dist node_modules dist/libs"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
Reference in New Issue
Block a user