mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
AAE-37847 Create Git tag at the end of release branch process when on patch PR (#11162)
* AAE-37847 Create Git tag at the end of release branch process when on patch PR * AAE-37847 Removed extra if condition
This commit is contained in:
24
.github/workflows/release-branch.yml
vendored
24
.github/workflows/release-branch.yml
vendored
@@ -66,6 +66,8 @@ jobs:
|
|||||||
|
|
||||||
release-npm:
|
release-npm:
|
||||||
needs: [setup]
|
needs: [setup]
|
||||||
|
outputs:
|
||||||
|
release_version: ${{ steps.set-version.outputs.release_version }}
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
@@ -86,9 +88,10 @@ jobs:
|
|||||||
dry-run-flag: ${{ inputs.dry-run-flag }}
|
dry-run-flag: ${{ inputs.dry-run-flag }}
|
||||||
- uses: ./.github/actions/download-node-modules-and-artifacts
|
- uses: ./.github/actions/download-node-modules-and-artifacts
|
||||||
- name: Set libraries versions
|
- name: Set libraries versions
|
||||||
|
id: set-version
|
||||||
run: |
|
run: |
|
||||||
set -u;
|
set -u;
|
||||||
./scripts/update-version.sh -gnu || exit 1;
|
./scripts/github/build/bumpversion.sh
|
||||||
- name: Set migrations
|
- name: Set migrations
|
||||||
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
|
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
|
||||||
with:
|
with:
|
||||||
@@ -105,7 +108,7 @@ jobs:
|
|||||||
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'
|
||||||
- run: npx nx run-many --target=npm-publish --tag=branch|| exit 1
|
- run: npx nx run-many -t npm-publish --tag=$TAG_NPM || exit 1
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.PAT_WRITE_PKG }}
|
NODE_AUTH_TOKEN: ${{ secrets.PAT_WRITE_PKG }}
|
||||||
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
|
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
|
||||||
@@ -114,10 +117,25 @@ jobs:
|
|||||||
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: npx nx run-many --target=npm-publish --tag=branch || exit 1
|
- run: npx nx run-many -t npm-publish --tag=$TAG_NPM || exit 1
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }}
|
||||||
|
|
||||||
|
create-git-tag:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [setup, release-npm]
|
||||||
|
name: Create github tag
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
with:
|
||||||
|
fetch-depth: 1
|
||||||
|
- uses: './.github/actions/create-git-tag'
|
||||||
|
with:
|
||||||
|
tagName: ${{ needs.release-npm.outputs.release_version }}
|
||||||
|
|
||||||
npm-check-bundle:
|
npm-check-bundle:
|
||||||
needs: [release-npm]
|
needs: [release-npm]
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
|
Reference in New Issue
Block a user