mirror of
https://github.com/Unleash/unleash.git
synced 2025-06-04 01:18:20 +02:00
fix: missing node engine upgrade to 18 (#3552)
## About the changes Updates frontend engine minimum version to node 18 and also improves some messages in the release GHA task
This commit is contained in:
parent
af67c0cff9
commit
e6f3b3009a
11
.github/workflows/release.yaml
vendored
11
.github/workflows/release.yaml
vendored
@ -14,16 +14,21 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Publish to npm
|
- name: Setup to npm
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
cache: 'yarn'
|
cache: 'yarn'
|
||||||
- run: |
|
- name: Build
|
||||||
|
run: |
|
||||||
yarn install --frozen-lockfile
|
yarn install --frozen-lockfile
|
||||||
yarn --cwd ./frontend install --frozen-lockfile
|
yarn --cwd ./frontend install --frozen-lockfile
|
||||||
- run: |
|
ls -l ./frontend
|
||||||
|
ls -l ./frontend/build
|
||||||
|
npm publish --dry-run
|
||||||
|
- name: Publish to npm
|
||||||
|
run: |
|
||||||
LATEST=$(npm show unleash-server version)
|
LATEST=$(npm show unleash-server version)
|
||||||
TAG=$(node scripts/npm-tag.js $LATEST)
|
TAG=$(node scripts/npm-tag.js $LATEST)
|
||||||
npm publish --tag ${TAG:-latest}
|
npm publish --tag ${TAG:-latest}
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
"build/"
|
"build/"
|
||||||
],
|
],
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=14"
|
"node": ">=18"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
|
@ -11,7 +11,9 @@
|
|||||||
"files": [
|
"files": [
|
||||||
"dist",
|
"dist",
|
||||||
"docs",
|
"docs",
|
||||||
"frontend/build"
|
"frontend/build",
|
||||||
|
"frontend/index.js",
|
||||||
|
"frontend/package.json"
|
||||||
],
|
],
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
Loading…
Reference in New Issue
Block a user