diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 28dbc2fb..65b10eef 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -7,13 +7,15 @@ on: name: Publish NPM package jobs: build: + permissions: + id-token: write runs-on: ubuntu-latest steps: - uses: actions/checkout@master - - name: Use Node.js 16.x - uses: actions/setup-node@v1 + - name: Use Node.js 18.x + uses: actions/setup-node@v4.0.1 with: - node-version: 16.x + node-version: 18.x - name: Cache node modules id: cache-npm uses: actions/cache@v3 @@ -46,10 +48,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@master - - name: Use Node.js 16.x - uses: actions/setup-node@v1 + - name: Use Node.js 18.x + uses: actions/setup-node@v4.0.1 with: - node-version: 16.x + node-version: 18.x - name: Cache node modules id: cache-npm uses: actions/cache@v3 @@ -95,10 +97,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@master - - name: Use Node.js 16.x - uses: actions/setup-node@v1 + - name: Use Node.js 18.x + uses: actions/setup-node@v4.0.1 with: - node-version: 16.x + node-version: 18.x - name: Cache node modules id: cache-npm uses: actions/cache@v3 diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 45541a9b..84d08f6a 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -1,8 +1,8 @@ on: push: branches-ignore: - - "master" - - "main" + - 'master' + - 'main' pull_request: name: PR Validation @@ -11,10 +11,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@master - - name: Use Node.js 16.x - uses: actions/setup-node@v1 + - name: Use Node.js 18.x + uses: actions/setup-node@v4.0.1 with: - node-version: 16.x + node-version: 18.x - name: Cache node modules id: cache-npm uses: actions/cache@v3 diff --git a/package.json b/package.json index 013bb762..4f36700d 100644 --- a/package.json +++ b/package.json @@ -7,10 +7,10 @@ "typings": "lib/index.d.ts", "scripts": { "test": "jest", - "start": "start-storybook -p 6006", + "start": "node --openssl-legacy-provider ./node_modules/.bin/start-storybook -p 6006", "build": "npm run build:lib && npm run build:dist ", - "build:lib": "rimraf lib && webpack --config webpack.config.js", - "build:storybook": "build-storybook && cp ./static/* ./storybook-static && node postbuild", + "build:lib": "rimraf lib && node --openssl-legacy-provider ./node_modules/.bin/webpack --config webpack.config.js", + "build:storybook": "node --openssl-legacy-provider ./node_modules/.bin/build-storybook && cp ./static/* ./storybook-static && node postbuild", "build:dist": "rimraf dist && tsc -p . -d --outDir dist --declarationDir dist --sourceMap false --skipLibCheck && postcss --base src --dir dist 'src/**/*.css'", "check:prettier": "prettier -c 'src/**/*.{js,ts,json,yml,md,tsx,html,css}'", "check:code": "eslint . --max-warnings=0", @@ -105,6 +105,9 @@ "semantic-ui-react": "^2.0.3", "uuid": "^9.0.1" }, + "engines": { + "node": "18" + }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0", "react-dom": "^16.8.0 || ^17.0.0"