Skip to content

Commit 5a74f8e

Browse files
committed
update npm and node requirements
1 parent 64aa4b0 commit 5a74f8e

File tree

4 files changed

+6000
-5704
lines changed

4 files changed

+6000
-5704
lines changed

.babelrc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"@babel/preset-react"
55
],
66
"plugins": [
7-
"@babel/plugin-proposal-class-properties",
8-
"@babel/plugin-proposal-export-namespace-from",
9-
"@babel/plugin-proposal-object-rest-spread",
7+
"@babel/plugin-transform-class-properties",
8+
"@babel/plugin-transform-export-namespace-from",
9+
"@babel/plugin-transform-object-rest-spread",
1010
"@babel/plugin-proposal-throw-expressions",
1111
"@babel/plugin-syntax-dynamic-import",
1212
"@babel/plugin-transform-runtime",

.github/workflows/publish.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# for more info: https://docs.npmjs.com/trusted-publishers#prefer-trusted-publishing-over-tokens
2+
name: Publish Package
3+
4+
on:
5+
push:
6+
tags:
7+
- 'v*'
8+
9+
permissions:
10+
id-token: write # Required for OIDC
11+
contents: read
12+
13+
jobs:
14+
publish:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: '20'
22+
registry-url: 'https://registry.npmjs.org'
23+
24+
- name: Update npm
25+
run: npm install -g npm@latest
26+
- run: npm test

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"author": "B12 <[email protected]> (https://b12.io/)",
1616
"license": "Apache-2.0",
1717
"engines": {
18-
"npm": ">=3.0.0"
18+
"node": ">=20.0.0",
19+
"npm": ">=11.5.1"
1920
},
2021
"jest": {
2122
"collectCoverage": false,
@@ -43,9 +44,9 @@
4344
"@babel/cli": "7.2.0",
4445
"@babel/core": "7.2.0",
4546
"@babel/node": "7.2.0",
46-
"@babel/plugin-proposal-class-properties": "7.2.1",
47-
"@babel/plugin-proposal-export-namespace-from": "7.2.0",
48-
"@babel/plugin-proposal-object-rest-spread": "7.2.0",
47+
"@babel/plugin-transform-class-properties": "7.24.7",
48+
"@babel/plugin-transform-export-namespace-from": "7.24.7",
49+
"@babel/plugin-transform-object-rest-spread": "7.24.7",
4950
"@babel/plugin-proposal-throw-expressions": "7.2.0",
5051
"@babel/plugin-syntax-dynamic-import": "7.2.0",
5152
"@babel/plugin-transform-runtime": "7.2.0",
@@ -79,7 +80,7 @@
7980
"file-loader": "1.1.11",
8081
"html-webpack-plugin": "3.2.0",
8182
"jest": "24.1.0",
82-
"node-sass": "4.13.1",
83+
"sass": "1.77.8",
8384
"popper.js": "1.14.3",
8485
"prettier": "2.7.1",
8586
"prop-types": "15.6.2",

0 commit comments

Comments
 (0)