mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
Revert "[ACA-4649] fix token propagation"
This reverts commit d939caa5d9e9b6abf2010607e41c9a0ba932871f.
This commit is contained in:
parent
d939caa5d9
commit
c0e01fc6ab
6
.github/actions/git-tag/action.yml
vendored
6
.github/actions/git-tag/action.yml
vendored
@ -2,6 +2,10 @@ name: "Publish GitHub Tag"
|
|||||||
description: "Publish GitHub Tag"
|
description: "Publish GitHub Tag"
|
||||||
|
|
||||||
inputs:
|
inputs:
|
||||||
|
github_token:
|
||||||
|
description: 'Github token'
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
branch_name:
|
branch_name:
|
||||||
description: 'Name of the branch the workflow runs on'
|
description: 'Name of the branch the workflow runs on'
|
||||||
required: true
|
required: true
|
||||||
@ -27,7 +31,7 @@ runs:
|
|||||||
if [[ "${{ inputs.dry-run }}" != "true" ]]; then
|
if [[ "${{ inputs.dry-run }}" != "true" ]]; then
|
||||||
git tag -a ${VERSION} -m "${VERSION} [ci skip] "
|
git tag -a ${VERSION} -m "${VERSION} [ci skip] "
|
||||||
git remote rm origin
|
git remote rm origin
|
||||||
GITHUB_REPO=https://${{ secrets.GITHUB_TOKEN }}:x-oauth-basic@github.com/Alfresco/alfresco-content-app.git
|
GITHUB_REPO=https://${{ inputs.github_token }}:x-oauth-basic@github.com/Alfresco/alfresco-content-app.git
|
||||||
git remote add origin $GITHUB_REPO
|
git remote add origin $GITHUB_REPO
|
||||||
git push origin --tags
|
git push origin --tags
|
||||||
fi
|
fi
|
||||||
|
23
.github/actions/publish-libs/action.yml
vendored
23
.github/actions/publish-libs/action.yml
vendored
@ -6,6 +6,18 @@ inputs:
|
|||||||
description: 'Name of the branch the workflow runs on'
|
description: 'Name of the branch the workflow runs on'
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
github_token:
|
||||||
|
description: 'Github token'
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
npm_registry_address:
|
||||||
|
description: 'NPM registry address'
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
npm_registry_token:
|
||||||
|
description: 'NPM registry token'
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
npm_tag:
|
npm_tag:
|
||||||
description: 'NPM tag'
|
description: 'NPM tag'
|
||||||
required: true
|
required: true
|
||||||
@ -55,14 +67,12 @@ runs:
|
|||||||
|
|
||||||
echo -e "\n\nBuild projects"
|
echo -e "\n\nBuild projects"
|
||||||
npm run build-libs
|
npm run build-libs
|
||||||
|
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
name: setup GH registry
|
name: setup GH registry
|
||||||
with:
|
with:
|
||||||
node-version-file: '.nvmrc'
|
node-version-file: '.nvmrc'
|
||||||
registry-url: 'https://npm.pkg.github.com'
|
registry-url: 'https://npm.pkg.github.com'
|
||||||
scope: '@alfresco'
|
scope: '@alfresco'
|
||||||
|
|
||||||
- name: publish tag to GH registry
|
- name: publish tag to GH registry
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
@ -93,15 +103,14 @@ runs:
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ inputs.github_token }}
|
||||||
|
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
name: setup NPM registry
|
name: setup NPM registry
|
||||||
with:
|
with:
|
||||||
node-version-file: '.nvmrc'
|
node-version-file: '.nvmrc'
|
||||||
registry-url: 'https://${{ vars.NPM_REGISTRY_ADDRESS }}'
|
registry-url: ${{ inputs.npm_registry_address }}
|
||||||
scope: '@alfresco'
|
scope: '@alfresco'
|
||||||
- name: Publish to NPM registry
|
- name: publish tag to NPM registry
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
DIST_DIR="./dist/@alfresco"
|
DIST_DIR="./dist/@alfresco"
|
||||||
@ -131,4 +140,4 @@ runs:
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ inputs.npm_registry_token }}
|
||||||
|
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
@ -41,7 +41,6 @@ env:
|
|||||||
APP_CONFIG_OAUTH2_REDIRECT_LOGIN: /
|
APP_CONFIG_OAUTH2_REDIRECT_LOGIN: /
|
||||||
APP_CONFIG_OAUTH2_REDIRECT_SILENT_IFRAME_URI: "{protocol}//{hostname}{:port}/assets/silent-refresh.html"
|
APP_CONFIG_OAUTH2_REDIRECT_SILENT_IFRAME_URI: "{protocol}//{hostname}{:port}/assets/silent-refresh.html"
|
||||||
REPO_SLUG: "alfresco/alfresco-content-app"
|
REPO_SLUG: "alfresco/alfresco-content-app"
|
||||||
NPM_REGISTRY_ADDRESS: ${{ secrets.NPM_REGISTRY_ADDRESS }}
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish-docker-registry:
|
publish-docker-registry:
|
||||||
@ -112,6 +111,7 @@ jobs:
|
|||||||
- name: publish
|
- name: publish
|
||||||
uses: ./.github/actions/git-tag
|
uses: ./.github/actions/git-tag
|
||||||
with:
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
branch_name: ${{ env.BRANCH_NAME }}
|
branch_name: ${{ env.BRANCH_NAME }}
|
||||||
dry-run: ${{ inputs.dry-run-release }}
|
dry-run: ${{ inputs.dry-run-release }}
|
||||||
|
|
||||||
@ -135,5 +135,8 @@ jobs:
|
|||||||
uses: ./.github/actions/publish-libs
|
uses: ./.github/actions/publish-libs
|
||||||
with:
|
with:
|
||||||
branch_name: ${{ env.BRANCH_NAME }}
|
branch_name: ${{ env.BRANCH_NAME }}
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
npm_registry_address: ${{ vars.NPM_REGISTRY_ADDRESS }}
|
||||||
|
npm_registry_token: ${{ secrets.NPM_REGISTRY_TOKEN }}
|
||||||
npm_tag: ${{ env.TAG_NPM }}
|
npm_tag: ${{ env.TAG_NPM }}
|
||||||
dry-run: ${{ inputs.dry-run-release }}
|
dry-run: ${{ inputs.dry-run-release }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user