Enable trusted publishing

This commit is contained in:
MichalKinas
2026-02-25 16:36:31 +01:00
parent dfd792bed9
commit 5a53b8ba5c
4 changed files with 30 additions and 25 deletions
+5 -7
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
@@ -29,9 +26,11 @@ runs:
- name: Build Libraries
shell: bash
run: npm ci && npx nx run-many --target=build
run: |
npm ci
npm run ci:build:many
- uses: actions/setup-node@v4
- uses: actions/setup-node@v6
name: setup GH registry
with:
node-version-file: '.nvmrc'
@@ -46,7 +45,7 @@ runs:
TAG: ${{ inputs.npm_tag }}
DRY_RUN: ${{ inputs.dry-run }}
- uses: actions/setup-node@v4
- uses: actions/setup-node@v6
name: setup NPM registry
with:
node-version-file: '.nvmrc'
@@ -57,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