[ACS-10763] Switch to NPM trusted publishing (#4907)

* [ACS-10763] Switch to NPM trusted publishing

* [ACS-10763] Change contents permission to read

* [ACS-10763] Cover GH packages

* [ACS-10763] Bump Node and NPM versions to match trusted publishing requirements

* [ACS-10763] Add the exit on error step for publishing

* [ACS-10763] Fix package lock, move set -e to the release script
This commit is contained in:
Michal Kinas
2025-11-26 09:57:41 +01:00
committed by GitHub
parent 703c774028
commit 907d4c4cd6
5 changed files with 94 additions and 140 deletions
-4
View File
@@ -8,9 +8,6 @@ inputs:
github_token:
description: 'Github token'
required: true
npm_registry_token:
description: 'NPM registry token'
required: true
npm_tag:
description: 'NPM tag'
required: true
@@ -59,6 +56,5 @@ runs:
shell: bash
run: ${{ github.action_path }}/npm-publish.sh "$TAG" "$DRY_RUN"
env:
NODE_AUTH_TOKEN: ${{ inputs.npm_registry_token }}
TAG: ${{ inputs.npm_tag }}
DRY_RUN: ${{ inputs.dry-run }}
@@ -1,5 +1,7 @@
#!/usr/bin/env bash
set -e
ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../../.." && pwd )"
DIST_DIR="$ROOT_DIR/dist/@alfresco"
TAG=$1