@vkontakte/vk-miniapps-deploy 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25,12 +25,12 @@ runs:
25
25
 
26
26
  - name: Bump version
27
27
  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
29
29
  shell: bash
30
30
 
31
31
  - name: Bump version with npm_tag
32
32
  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
34
34
  shell: bash
35
35
 
36
36
  - name: Saving new version to env
@@ -18,9 +18,12 @@ run-name: Publish vk-miniapps-deploy ${{ inputs.new_version }}
18
18
  jobs:
19
19
  publish:
20
20
  runs-on: ubuntu-latest
21
+ permissions:
22
+ contents: write
23
+ id-token: write
21
24
  steps:
22
25
  - name: Checkout
23
- uses: actions/checkout@v4
26
+ uses: actions/checkout@v6
24
27
  with:
25
28
  token: ${{ secrets.DEVTOOLS_GITHUB_TOKEN }}
26
29
 
@@ -36,11 +39,24 @@ jobs:
36
39
  - name: Validation
37
40
  uses: ./.github/actions/validation
38
41
 
39
- - name: Complete publish
40
- 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(vk-miniapps-deploy): from ${{ steps.updated_versions_info.outputs.prev_version }} to ${{ steps.updated_versions_info.outputs.next_version }}"
54
+ git tag vk-miniapps-deploy@${{ steps.updated_versions_info.outputs.next_version }}
55
+ shell: bash
56
+
57
+ - name: Pushing changes
58
+ uses: ad-m/github-push-action@master
41
59
  with:
60
+ github_token: ${{ secrets.DEVTOOLS_GITHUB_TOKEN }}
42
61
  branch: ${{ github.ref }}
43
- prev_version: ${{ steps.updated_versions_info.outputs.prev_version }}
44
- next_version: ${{ steps.updated_versions_info.outputs.next_version }}
45
- token: ${{ secrets.DEVTOOLS_GITHUB_TOKEN }}
46
- npm_token: ${{ secrets.NPMJS_PUBLISH_TOKEN }}
62
+ tags: true
package/.yarnrc.yml ADDED
@@ -0,0 +1 @@
1
+ nodeLinker: node-modules
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## v1.0.2
2
+
3
+ - Технический релиз
4
+
1
5
  ## v1.0.1
2
6
 
3
7
  - Все адреса изменены с `vk.com` на `vk.ru`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkontakte/vk-miniapps-deploy",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Deploy to VK Mini Apps hosting with one simple command",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -34,9 +34,9 @@
34
34
  "bin": "./bin/vk-miniapps-deploy",
35
35
  "repository": {
36
36
  "type": "git",
37
- "url": "https://github.com/vkcom/vk-miniapps-deploy.git"
37
+ "url": "https://github.com/VKCOM/vk-miniapps-deploy"
38
38
  },
39
- "homepage": "https://github.com/vkcom/vk-miniapps-deploy",
39
+ "homepage": "https://github.com/VKCOM/vk-miniapps-deploy",
40
40
  "dependencies": {
41
41
  "async": "^3.2.0",
42
42
  "chalk": "^3.0.0",
@@ -1,48 +0,0 @@
1
- name: Publish Workflow / Complete
2
- description: It finish publishing
3
-
4
- inputs:
5
- branch:
6
- description: target branch for git push
7
- required: true
8
- prev_version:
9
- description: package's prev version
10
- required: true
11
- next_version:
12
- description: package's next version
13
- required: true
14
- npm_tag:
15
- description: tag for NPM artifact
16
- required: false
17
- token:
18
- description: token for write access to repository
19
- required: true
20
- npm_token:
21
- description: token for publish package to NPM
22
-
23
- runs:
24
- using: composite
25
- steps:
26
- - name: Create tag
27
- run: git tag vk-miniapps-deploy@${{ inputs.next_version }}
28
- shell: bash
29
-
30
- - name: Pushing changes
31
- uses: ad-m/github-push-action@master
32
- with:
33
- github_token: ${{ inputs.token }}
34
- branch: ${{ inputs.branch }}
35
-
36
- - name: Publishing release
37
- if: ${{ !inputs.npm_tag }}
38
- run: yarn publish --access public --non-interactive
39
- env:
40
- NODE_AUTH_TOKEN: ${{ inputs.npm_token }}
41
- shell: bash
42
-
43
- - name: Publishing release with npm_tag
44
- if: ${{ inputs.npm_tag }}
45
- run: yarn publish --access public --non-interactive --tag ${{ inputs.npm_tag }}
46
- env:
47
- NODE_AUTH_TOKEN: ${{ inputs.npm_token }}
48
- shell: bash
@@ -1,61 +0,0 @@
1
- name: 'Publish (pre-release)'
2
-
3
- on:
4
- workflow_dispatch:
5
- inputs:
6
- new_version:
7
- description: 'version type (use prerelease for bumping pre-release version):'
8
- required: true
9
- type: choice
10
- default: 'prerelease'
11
- options:
12
- - prepatch
13
- - preminor
14
- - premajor
15
- - prerelease
16
- npm_tag:
17
- required: true
18
- description: 'NPM tag:'
19
- type: choice
20
- default: 'beta'
21
- options:
22
- - alpha
23
- - beta
24
- - rc
25
- custom_version:
26
- description: 'use syntax x.y.z-beta.0, without "v" (it ignore "version type" parameter):'
27
- required: false
28
-
29
- run-name: Publish ${{ inputs.new_version }} vk-miniapps-deploy ${{ inputs.custom_version }}
30
-
31
- jobs:
32
- publish:
33
- runs-on: ubuntu-latest
34
- steps:
35
- - name: Checkout
36
- uses: actions/checkout@v4
37
- with:
38
- token: ${{ secrets.DEVTOOLS_GITHUB_TOKEN }}
39
-
40
- - name: Setting up the repository environment
41
- uses: ./.github/actions/setup
42
-
43
- - name: Bump version
44
- id: updated_versions_info
45
- uses: ./.github/actions/bump-version
46
- with:
47
- version: ${{ github.event.inputs.custom_version || github.event.inputs.new_version }}
48
- npm_tag: ${{ github.event.inputs.npm_tag }}
49
-
50
- - name: Validation
51
- uses: ./.github/actions/validation
52
-
53
- - name: Complete publish
54
- uses: ./.github/actions/complete-publish
55
- with:
56
- branch: ${{ github.ref }}
57
- prev_version: ${{ steps.updated_versions_info.outputs.prev_version }}
58
- next_version: ${{ steps.updated_versions_info.outputs.next_version }}
59
- npm_tag: ${{ github.event.inputs.npm_tag }}
60
- token: ${{ secrets.DEVTOOLS_GITHUB_TOKEN }}
61
- npm_token: ${{ secrets.NPMJS_PUBLISH_TOKEN }}