Skip to content

build(deps): bump react-i18next from 16.5.4 to 16.5.5 (#1919) #1283

build(deps): bump react-i18next from 16.5.4 to 16.5.5 (#1919)

build(deps): bump react-i18next from 16.5.4 to 16.5.5 (#1919) #1283

Workflow file for this run

#*********************************************************************
# Copyright (c) Intel Corporation 2020
# SPDX-License-Identifier: Apache-2.0
#*********************************************************************/
# This workflow will release new versions when required using semantic-release
name: Semantic-Release CI
on:
push:
branches: [main]
permissions:
contents: read
jobs:
release:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write # for Git to git push
steps:
- name: Harden Runner
uses: step-security/harden-runner@58077d3c7e43986b6b15fba718e8ea69e387dfcc # v2.15.1
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Use Node.js 24.x
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: '24.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run build
- run: rsync -a package.json README.md ./dist/
- run: sed -i 's|"dist/index|"index|g' dist/package.json
- name: Semantic Release
id: semantic
uses: cycjimmy/semantic-release-action@b12c8f6015dc215fe37bc154d4ad456dd3833c90 # v6.0.0
with:
semantic_version: 25.0.2 # It is recommended to specify version range for semantic-release.
env:
GITHUB_TOKEN: ${{ secrets.ROSIE_TOKEN }}
- name: Publish to @open-amt-cloud-toolkit
if: steps.semantic.outputs.new_release_published == 'true'
run: |
echo "Publishing @open-amt-cloud-toolkit/ui-toolkit-react@${{ steps.semantic.outputs.new_release_version }}"
sed -i 's/"@device-management-toolkit\/ui-toolkit-react"/"@open-amt-cloud-toolkit\/ui-toolkit-react"/' dist/package.json
sed -i 's/"version": "[^"]*"/"version": "${{ steps.semantic.outputs.new_release_version }}"/' dist/package.json
cd dist
npm publish