From 00d6a30987cbf8e7b82f427c2243324da6c35bef Mon Sep 17 00:00:00 2001 From: Sergey Peshkov Date: Fri, 1 Apr 2022 18:59:05 +0300 Subject: [PATCH 1/2] vkui-94: use more modern node --- .github/workflows/coverage.yml | 2 +- .github/workflows/publish_dev.yml | 2 +- .github/workflows/publish_from_git.yml | 2 +- .github/workflows/publish_release.yml | 8 ++++---- .github/workflows/test.yml | 6 +++--- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 2871c025..636344c1 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v1 - uses: actions/setup-node@v2 with: - node-version: '14' + node-version: '17' - uses: artiomtr/jest-coverage-report-action@v2.0-rc.1 with: github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/publish_dev.yml b/.github/workflows/publish_dev.yml index 0010dee5..6c4be405 100644 --- a/.github/workflows/publish_dev.yml +++ b/.github/workflows/publish_dev.yml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: - node-version: 14 + node-version: 17 registry-url: 'https://registry.npmjs.org' - run: npm ci - name: Assigning new version diff --git a/.github/workflows/publish_from_git.yml b/.github/workflows/publish_from_git.yml index fbdaeff2..4d28542e 100644 --- a/.github/workflows/publish_from_git.yml +++ b/.github/workflows/publish_from_git.yml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: - node-version: 14 + node-version: 17 registry-url: 'https://registry.npmjs.org' - run: npm ci - name: Publishing release diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish_release.yml index 801e8f2d..36dcdf2a 100644 --- a/.github/workflows/publish_release.yml +++ b/.github/workflows/publish_release.yml @@ -14,10 +14,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Use Node.js 14 + - name: Use Node.js uses: actions/setup-node@v2 with: - node-version: 14 + node-version: 17 cache: 'npm' registry-url: https://registry.npmjs.org/ - run: npm ci @@ -32,10 +32,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Use Node.js 14 + - name: Use Node.js uses: actions/setup-node@v2 with: - node-version: 14 + node-version: 17 cache: 'npm' registry-url: https://registry.npmjs.org/ - run: npm ci diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2324dfc2..90e9a00a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: '14' + node-version: '17' - run: npm ci - run: npm run lint test: @@ -22,7 +22,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: '14' + node-version: '17' - run: npm ci - run: npm run test:ci build: @@ -31,7 +31,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: '14' + node-version: '17' - run: npm ci - run: npm run build From bdab9722035ac17e2f40bd773d4a66a4122f4614 Mon Sep 17 00:00:00 2001 From: Sergey Peshkov Date: Fri, 1 Apr 2022 19:01:05 +0300 Subject: [PATCH 2/2] vkui-94: mkdir dist before build --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 94b22db5..4e277aa8 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "license": "MIT", "main": "utils/descriptions.js", "scripts": { - "build": "npm run build:script && npm run tsc:generate-paths && npm run tsc:dist", + "build": "mkdir -p dist && npm run build:script && npm run tsc:generate-paths && npm run tsc:dist", "build:local": "npm run build && npm run clear:dist", "prepublishOnly": "echo 'ПРЕДУПРЕЖДЕНИЕ: Публиковать из root этот пакет нельзя: выполните команду \\033[1;32m\"npm run publish:dist\"' && exit 1", "prepublish:dist": "npm run clear:src && npm run build",