Skip to content

Commit 47108ef

Browse files
committed
MA-24300: fixes
1 parent b841b24 commit 47108ef

4 files changed

Lines changed: 23 additions & 119 deletions

File tree

.github/actions/bump-version/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ runs:
2525

2626
- name: Bump version
2727
if: ${{ !inputs.npm_tag }}
28-
run: yarn version --new-version "${{ inputs.version }}" --no-commit-hooks
28+
run: yarn version --new-version "${{ inputs.version }}" --no-commit-hooks --no-git-tag-version
2929
shell: bash
3030

3131
- name: Bump version with npm_tag
3232
if: ${{ inputs.npm_tag }}
33-
run: yarn version --new-version "${{ inputs.version }}" --preid ${{ inputs.npm_tag }} --no-commit-hooks
33+
run: yarn version --new-version "${{ inputs.version }}" --preid ${{ inputs.npm_tag }} --no-commit-hooks --no-git-tag-version
3434
shell: bash
3535

3636
- name: Saving new version to env

.github/actions/complete-publish/action.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ jobs:
1919
publish:
2020
runs-on: ubuntu-latest
2121
permissions:
22+
contents: write
2223
id-token: write
2324
steps:
2425
- name: Checkout
25-
uses: actions/checkout@v4
26+
uses: actions/checkout@v6
2627
with:
2728
token: ${{ secrets.DEVTOOLS_GITHUB_TOKEN }}
2829

@@ -38,10 +39,24 @@ jobs:
3839
- name: Validation
3940
uses: ./.github/actions/validation
4041

41-
- name: Complete publish
42-
uses: ./.github/actions/complete-publish
42+
- name: Update npm
43+
run: npm install -g npm@latest
44+
shell: bash
45+
46+
- name: Publish to npm
47+
run: npm publish --access public
48+
shell: bash
49+
50+
- name: Commit and tag
51+
run: |
52+
git add -A
53+
git commit -m "bump(create-vk-mini-app): from ${{ steps.updated_versions_info.outputs.prev_version }} to ${{ steps.updated_versions_info.outputs.next_version }}"
54+
git tag create-vk-mini-app@${{ steps.updated_versions_info.outputs.next_version }}
55+
shell: bash
56+
57+
- name: Pushing changes
58+
uses: ad-m/github-push-action@master
4359
with:
60+
github_token: ${{ secrets.DEVTOOLS_GITHUB_TOKEN }}
4461
branch: ${{ github.ref }}
45-
prev_version: ${{ steps.updated_versions_info.outputs.prev_version }}
46-
next_version: ${{ steps.updated_versions_info.outputs.next_version }}
47-
token: ${{ secrets.DEVTOOLS_GITHUB_TOKEN }}
62+
tags: true

.github/workflows/publish_prerelease.yml

Lines changed: 0 additions & 62 deletions
This file was deleted.

0 commit comments

Comments
 (0)