Skip to content

Commit

Permalink
UID2-2674 implement shared publish to docker versioned (#62)
Browse files Browse the repository at this point in the history
* Increase version for package-lock.json

* Use `npm install --package-lock-only`

* Use node 20.x
  • Loading branch information
cYKatherine authored Feb 20, 2024
1 parent 4096e54 commit 01a9cc8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/shared-increase-version-number.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ jobs:
uses: IABTechLab/uid2-shared-actions/actions/shared_publish_setup@v2
with:
release_type: ${{ inputs.release_type }}

- uses: actions/setup-node@v4
with:
node-version: 20

- name: Set version number
id: version
Expand All @@ -56,17 +60,17 @@ jobs:
- name: Update ${{ inputs.working_dir }}/package-lock.json
id: updatePackageLockJson
run: |
npm install
npm install --package-lock-only
- name: Commit ${{ inputs.working_dir }}/package.json, ${{ inputs.working_dir }}/package-lock.json and ${{ inputs.working_dir }}/version.json
if: ${{ inputs.version_number_input == '' && steps.checkRelease.outputs.IS_RELEASE != 'true' }}
if: ${{ inputs.version_number_input == '' && steps.setup.outputs.IS_RELEASE != 'true' }}
uses: IABTechLab/uid2-shared-actions/actions/commit_pr_and_merge@main
with:
add: '${{ inputs.working_dir }}/package.json ${{ inputs.working_dir }}/package-lock.json ${{ inputs.working_dir }}/version.json'
message: 'Released ${{ inputs.release_type }} version: ${{ steps.version.outputs.new_version }}'

- name: Commit ${{ inputs.working_dir }}/package.json, ${{ inputs.working_dir }}/package-lock.json, ${{ inputs.working_dir }}/version.json and set tag
if: ${{ inputs.version_number_input == '' && steps.checkRelease.outputs.IS_RELEASE == 'true' }}
if: ${{ inputs.version_number_input == '' && steps.setup.outputs.IS_RELEASE == 'true' }}
uses: IABTechLab/uid2-shared-actions/actions/commit_pr_and_merge@main
with:
add: '${{ inputs.working_dir }}/package.json ${{ inputs.working_dir }}/package-lock.json ${{ inputs.working_dir }}/version.json'
Expand Down

0 comments on commit 01a9cc8

Please sign in to comment.