AAE-12452 - Version published in NPM should have PR number id in the name not gh-run_id (#8218)

* AAE-11884 change tag sha action (#8118)

* AAE-12452 change npm id
This commit is contained in:
Maurizio Cacace
2023-02-01 10:29:07 +01:00
committed by GitHub
parent a720edd2cf
commit ca49693bd6
2 changed files with 23 additions and 12 deletions

View File

@@ -79,9 +79,9 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- uses: ./.github/actions/setup - uses: ./.github/actions/setup
with: with:
enable-cache: false enable-cache: false
enable-node-modules-cache: false enable-node-modules-cache: false
- name: install - name: install
run: | run: |
npm ci npm ci
@@ -102,13 +102,13 @@ jobs:
- run: git fetch --all - run: git fetch --all
- id: set-dryrun - id: set-dryrun
uses: ./.github/actions/enable-dryrun uses: ./.github/actions/enable-dryrun
with: with:
dry-run-flag: ${{ inputs.dry-run-release }} dry-run-flag: ${{ inputs.dry-run-release }}
- uses: ./.github/actions/setup - uses: ./.github/actions/setup
with: with:
enable-cache: false enable-cache: false
enable-node-modules-cache: false enable-node-modules-cache: false
- uses: ./.github/actions/download-cache-and-artifacts - uses: ./.github/actions/download-cache-and-artifacts
- name: release Demoshell docker - name: release Demoshell docker
run: | run: |
nx build demoshell --configuration production nx build demoshell --configuration production
@@ -128,10 +128,10 @@ jobs:
- run: git fetch --all - run: git fetch --all
- id: set-dryrun - id: set-dryrun
uses: ./.github/actions/enable-dryrun uses: ./.github/actions/enable-dryrun
with: with:
dry-run-flag: ${{ inputs.dry-run-release }} dry-run-flag: ${{ inputs.dry-run-release }}
- uses: ./.github/actions/setup - uses: ./.github/actions/setup
with: with:
enable-cache: false enable-cache: false
enable-node-modules-cache: false enable-node-modules-cache: false
act: ${{ inputs.dry-run-release }} act: ${{ inputs.dry-run-release }}
@@ -139,7 +139,7 @@ jobs:
- name: release Storybook docker - name: release Storybook docker
run: | run: |
nx run stories:build-storybook --configuration ci nx run stories:build-storybook --configuration ci
. ./scripts/travis/release/docker-tag.sh . ./scripts/travis/release/docker-tag.sh
./scripts/travis/release/release-storybook-docker.sh ${{ steps.set-dryrun.outputs.dryrun }} ./scripts/travis/release/release-storybook-docker.sh ${{ steps.set-dryrun.outputs.dryrun }}
release-npm: release-npm:
@@ -153,14 +153,25 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- uses: ./.github/actions/setup - uses: ./.github/actions/setup
with: with:
enable-cache: false enable-cache: false
enable-node-modules-cache: false enable-node-modules-cache: false
- id: set-dryrun - id: set-dryrun
uses: ./.github/actions/enable-dryrun uses: ./.github/actions/enable-dryrun
with: with:
dry-run-flag: ${{ inputs.dry-run-release }} dry-run-flag: ${{ inputs.dry-run-release }}
- uses: ./.github/actions/download-cache-and-artifacts - uses: ./.github/actions/download-cache-and-artifacts
- name: check PR number
id: action
uses: kamatama41/get-pr-number-action@v0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: save PR number
env:
GH_TOKEN: ${{ github.token }}
shell: bash
run: |
echo "PR_NUMBER=${{ steps.action.outputs.number }}" >> $GITHUB_ENV
- name: build libraries - name: build libraries
run: | run: |
set -u; set -u;

View File

@@ -82,7 +82,7 @@ fi
if [[ "${EXEC_ALPHA}" == true ]] if [[ "${EXEC_ALPHA}" == true ]]
then then
NEXT_VERSION=${NEXT_VERSION}-${TRAVIS_BUILD_NUMBER} NEXT_VERSION=${NEXT_VERSION}-${PR_NUMBER}
fi fi
if [[ "${EXEC_BETA}" == true ]] if [[ "${EXEC_BETA}" == true ]]