From 0c2691521b9eb5caec4776b8f7a432b881c31658 Mon Sep 17 00:00:00 2001 From: Pavel Samusev Date: Fri, 28 Feb 2025 11:16:08 +0300 Subject: [PATCH] [Fix] Prepare for 1.21 release --- .github/workflows/production-build.yml | 86 +++++++++++++------------- package.json | 2 +- yarn.lock | 8 +-- 3 files changed, 48 insertions(+), 48 deletions(-) diff --git a/.github/workflows/production-build.yml b/.github/workflows/production-build.yml index 6fd7e080..ab115e11 100644 --- a/.github/workflows/production-build.yml +++ b/.github/workflows/production-build.yml @@ -24,23 +24,23 @@ jobs: yarn install env: NODE_AUTH_TOKEN: ${{ secrets.PACKAGE_SECRET }} - # - name: Bump version locally - # run: | - # git config --global user.name 'github-actions[bot]' - # git config --global user.email 'github-actions[bot]@users.noreply.github.com' - # git fetch origin - # git checkout -B main origin/main - # npm version patch --no-git-tag-version + - name: Bump version locally + run: | + git config --global user.name 'github-actions[bot]' + git config --global user.email 'github-actions[bot]@users.noreply.github.com' + git fetch origin + git checkout -B main origin/main + npm version patch --no-git-tag-version - name: build code run: yarn build - # - name: Commit version changes - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # run: | - # git add package.json yarn.lock - # git commit -m "CI: Bump version to $(jq -r .version < package.json) [skip ci]" --allow-empty - # git push origin main --follow-tags + - name: Commit version changes + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + git add package.json yarn.lock + git commit -m "CI: Bump version to $(jq -r .version < package.json) [skip ci]" --allow-empty + git push origin main --follow-tags - name: copy file branch run: | export CURRENT_PACKAGE_VERSION=$(node --eval="var pjson = require('./package.json');console.log(pjson.version);") @@ -65,32 +65,32 @@ jobs: inlineScript: | az storage blob upload-batch -d studio-ui -s upload/ --connection-string "${{ secrets.AZURE_CDN_STUDIO_PRD_CONNECTION_STRING }}" --overwrite true - # bump-version: - # needs: build - # runs-on: ubuntu-latest - # strategy: - # matrix: - # node-version: [20] - # steps: - # - uses: FranzDiebold/github-env-vars-action@v2 - # - uses: actions/checkout@v3 - # with: - # token: ${{ secrets.PACKAGE_SECRET }} - # - name: Use Node ${{ matrix.node-version }} - # uses: actions/setup-node@v3 - # with: - # node-version: ${{ matrix.node-version }} - # registry-url: 'https://npm.pkg.github.com' - # scope: '@chili-publish' - # - name: Bump version - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # run: | - # git config --global user.name 'github-actions[bot]' - # git config --global user.email 'github-actions[bot]@users.noreply.github.com' - # git fetch origin - # git checkout -B main origin/main - # npm version preminor --no-git-tag-version - # git add package.json yarn.lock - # git commit -m "CI: Bump version to $(jq -r .version < package.json) [skip ci]" --allow-empty - # git push origin main --follow-tags + bump-version: + needs: build + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [20] + steps: + - uses: FranzDiebold/github-env-vars-action@v2 + - uses: actions/checkout@v3 + with: + token: ${{ secrets.PACKAGE_SECRET }} + - name: Use Node ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + registry-url: 'https://npm.pkg.github.com' + scope: '@chili-publish' + - name: Bump version + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + git config --global user.name 'github-actions[bot]' + git config --global user.email 'github-actions[bot]@users.noreply.github.com' + git fetch origin + git checkout -B main origin/main + npm version preminor --no-git-tag-version + git add package.json yarn.lock + git commit -m "CI: Bump version to $(jq -r .version < package.json) [skip ci]" --allow-empty + git push origin main --follow-tags diff --git a/package.json b/package.json index 8d636642..a9e84ce2 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "dependencies": { "@babel/preset-env": "^7.25.3", "@chili-publish/grafx-shared-components": "^0.92.1", - "@chili-publish/studio-sdk": "1.20.1", + "@chili-publish/studio-sdk": "1.21.0", "@fortawesome/fontawesome-svg-core": "^6.7.1", "@fortawesome/pro-light-svg-icons": "^6.7.1", "@fortawesome/pro-regular-svg-icons": "^6.7.1", diff --git a/yarn.lock b/yarn.lock index d3233112..3e8a2906 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1312,10 +1312,10 @@ resolved "https://npm.pkg.github.com/download/@chili-publish/grafx-shared-components/0.92.2/44cb9664fbc2250d0e021abcd0d89955a5deac26#44cb9664fbc2250d0e021abcd0d89955a5deac26" integrity sha512-Vc+56HLvZmNQBfAbZ+dVm8Je6c0uVr+1XpWsWH7DEmrO7dDgWRx0l2dOq+v9ZQxGZpZaKeUtn4XQ0n1dGZpPXw== -"@chili-publish/studio-sdk@1.20.1": - version "1.20.1" - resolved "https://npm.pkg.github.com/download/@chili-publish/studio-sdk/1.20.1/6ac44111daab629390710b3927583f13a5b35529#6ac44111daab629390710b3927583f13a5b35529" - integrity sha512-q0p8xewbxDIjoWGTiE9WjB4ZQMeNAY1RPmz/wt60lFkWN84bciMrL3rs9OrQqmXp7FVpD6Z3MP9ihLRprIO2vg== +"@chili-publish/studio-sdk@1.21.0": + version "1.21.0" + resolved "https://npm.pkg.github.com/download/@chili-publish/studio-sdk/1.21.0/0463d8ae5fef026113209327be662d1e17372515#0463d8ae5fef026113209327be662d1e17372515" + integrity sha512-gDuEE5/BagdLy5YVKEI4bgqpuvAh9Z+Rzl8hoz22glkcQbduyB//1F95S9EcDKcD3By9+cGX1BnUrrZOrLOJQA== dependencies: penpal "6.1.0"