Skip to content

Commit fb1d8d4

Browse files
committed
feat(release): Add env support.
1 parent ff31a22 commit fb1d8d4

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/release-patch-3-release.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ on:
3434
type: 'choice'
3535
options:
3636
- 'prod'
37-
## - 'dev' # TODO(richieforeman) - support dev
37+
- 'dev'
3838
default: 'prod'
3939

4040
jobs:
@@ -66,6 +66,11 @@ jobs:
6666
node-version-file: '.nvmrc'
6767
cache: 'npm'
6868

69+
- name: 'configure .npmrc'
70+
uses: './.github/actions/setup-npmrc'
71+
with:
72+
github-token: '${{ secrets.GITHUB_TOKEN }}'
73+
6974
- name: 'Install Dependencies'
7075
run: |-
7176
npm ci
@@ -83,7 +88,7 @@ jobs:
8388
run: |
8489
# Use the existing get-release-version.js script to calculate patch version
8590
# Run from main checkout which has full git history and access to npm
86-
PATCH_JSON=$(node scripts/get-release-version.js --type=patch --patch-from=${{ github.event.inputs.type }})
91+
PATCH_JSON=$(node scripts/get-release-version.js --cli-package-name="${{vars.CLI_PACKAGE_NAME}}" --type=patch --patch-from=${{ github.event.inputs.type }})
8792
echo "Patch version calculation result: ${PATCH_JSON}"
8893
8994
RELEASE_VERSION=$(echo "${PATCH_JSON}" | jq -r .releaseVersion)

0 commit comments

Comments
 (0)