@vkontakte/vk-miniapps-deploy 1.0.0 → 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.
- package/.github/actions/bump-version/action.yml +2 -2
- package/.github/workflows/publish.yml +23 -7
- package/.yarnrc.yml +1 -0
- package/CHANGELOG.md +14 -2
- package/README.md +2 -2
- package/index.js +4 -4
- package/package.json +6 -6
- package/.github/actions/complete-publish/action.yml +0 -48
- package/.github/workflows/publish_prerelease.yml +0 -61
|
@@ -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@
|
|
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:
|
|
40
|
-
|
|
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
|
-
|
|
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,11 +1,23 @@
|
|
|
1
|
+
## v1.0.2
|
|
2
|
+
|
|
3
|
+
- Технический релиз
|
|
4
|
+
|
|
5
|
+
## v1.0.1
|
|
6
|
+
|
|
7
|
+
- Все адреса изменены с `vk.com` на `vk.ru`.
|
|
8
|
+
- `api.vk.com` → `api.vk.ru`
|
|
9
|
+
- `dev.vk.com` → `dev.vk.ru`
|
|
10
|
+
- `vk.com` → `vk.ru`
|
|
11
|
+
- `oauth.vk.com` → `oauth.vk.ru`
|
|
12
|
+
|
|
1
13
|
## v1.0.0
|
|
2
14
|
|
|
3
|
-
-
|
|
15
|
+
- Улучшенная скорость и стабильность загрузки статических файлов.
|
|
4
16
|
- ⚠️ Важно: мы меняем внутренние механизмы загрузки статики для мини-приложений, в связи с этим выпускаем новую версию до которой необходимо обновиться.
|
|
5
17
|
|
|
6
18
|
## v0.2.1
|
|
7
19
|
|
|
8
|
-
- ⚠️ Предупреждение: добавлено сообщение в `postinstall`, информирующее о прекращении поддержки версий ниже `v1.0.0`.
|
|
20
|
+
- ⚠️ Предупреждение: добавлено сообщение в `postinstall`, информирующее о прекращении поддержки версий ниже `v1.0.0`.
|
|
9
21
|
|
|
10
22
|
## v0.2.0
|
|
11
23
|
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[<img width="134" src="https://sun9-30.userapi.com/IMLu3sXowImUG-VtL34AqHT4qIUBapkCO0dyhA/bz55lWspvOk.svg">](https://vk.
|
|
1
|
+
[<img width="134" src="https://sun9-30.userapi.com/IMLu3sXowImUG-VtL34AqHT4qIUBapkCO0dyhA/bz55lWspvOk.svg">](https://vk.ru/services)
|
|
2
2
|
|
|
3
3
|
# VK Mini Apps Deploy [![npm][npm]][npm-url]
|
|
4
4
|
|
|
@@ -84,4 +84,4 @@ rm ~/.config/configstore/@vkontakte/vk-miniapps-deploy.json
|
|
|
84
84
|
[npm]: https://img.shields.io/npm/v/@vkontakte/vk-miniapps-deploy.svg
|
|
85
85
|
[npm-url]: https://npmjs.com/package/@vkontakte/vk-miniapps-deploy
|
|
86
86
|
|
|
87
|
-
For more details, visit the official [VK Developer Portal](https://dev.vk.
|
|
87
|
+
For more details, visit the official [VK Developer Portal](https://dev.vk.ru/mini-apps/development/hosting/overview).
|
package/index.js
CHANGED
|
@@ -17,8 +17,8 @@ prompt.delimiter = '=>'.grey;
|
|
|
17
17
|
|
|
18
18
|
const DEBUG_MODE = !!cfg.debug;
|
|
19
19
|
|
|
20
|
-
const API_HOST = cfg.api_host || 'https://api.vk.
|
|
21
|
-
const OAUTH_HOST = cfg.oauth_host || 'https://oauth.vk.
|
|
20
|
+
const API_HOST = cfg.api_host || 'https://api.vk.ru/method/';
|
|
21
|
+
const OAUTH_HOST = cfg.oauth_host || 'https://oauth.vk.ru/';
|
|
22
22
|
|
|
23
23
|
const API_VERSION = '5.131';
|
|
24
24
|
const DEPLOY_APP_ID = 6670517;
|
|
@@ -51,9 +51,9 @@ const URL_NAMES = {
|
|
|
51
51
|
};
|
|
52
52
|
|
|
53
53
|
const PLATFORMS = {
|
|
54
|
-
WEB: 'vk.
|
|
54
|
+
WEB: 'vk.ru',
|
|
55
55
|
MOBILE: 'iOS & Android',
|
|
56
|
-
MOBILE_WEB: 'm.vk.
|
|
56
|
+
MOBILE_WEB: 'm.vk.ru',
|
|
57
57
|
};
|
|
58
58
|
|
|
59
59
|
const URL_NAMES_MAP = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vkontakte/vk-miniapps-deploy",
|
|
3
|
-
"version": "1.0.
|
|
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": {
|
|
@@ -18,25 +18,25 @@
|
|
|
18
18
|
},
|
|
19
19
|
"author": {
|
|
20
20
|
"name": "VK",
|
|
21
|
-
"url": "https://vk.
|
|
21
|
+
"url": "https://vk.ru"
|
|
22
22
|
},
|
|
23
23
|
"contributors": [
|
|
24
24
|
{
|
|
25
25
|
"name": "Ilya Egorov",
|
|
26
|
-
"url": "https://vk.
|
|
26
|
+
"url": "https://vk.ru/mobyman"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
"name": "Gleb Vorontsov",
|
|
30
30
|
"email": "vorontsov.gleb@gmail.com",
|
|
31
|
-
"url": "https://vk.
|
|
31
|
+
"url": "https://vk.ru/boy"
|
|
32
32
|
}
|
|
33
33
|
],
|
|
34
34
|
"bin": "./bin/vk-miniapps-deploy",
|
|
35
35
|
"repository": {
|
|
36
36
|
"type": "git",
|
|
37
|
-
"url": "https://github.com/
|
|
37
|
+
"url": "https://github.com/VKCOM/vk-miniapps-deploy"
|
|
38
38
|
},
|
|
39
|
-
"homepage": "https://github.com/
|
|
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 }}
|