Skip to content

Commit e83ea68

Browse files
committed
fix: upgrade node in the workflow to run the publish from it
1 parent f819fd0 commit e83ea68

5 files changed

Lines changed: 2 additions & 72 deletions

File tree

.github/workflows/beta-release.yaml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
ref: ${{ github.head_ref }}
2222
- uses: actions/setup-node@v4
2323
with:
24-
node-version: '20.x'
24+
node-version: '22.14.0'
2525
registry-url: 'https://registry.npmjs.org'
2626
cache: 'yarn'
2727

@@ -41,16 +41,8 @@ jobs:
4141
env:
4242
GITHUB_PR_NUMBER: ${{ github.event.pull_request.number }}
4343

44-
- name: Build package
45-
run: npm run build
46-
47-
- uses: actions/setup-node@v4
48-
with:
49-
node-version: '22.14.0'
50-
registry-url: 'https://registry.npmjs.org'
51-
5244
- name: Release a new beta version
53-
run: npm publish --tag beta --access public --ignore-scripts
45+
run: npm publish --tag beta --access public
5446

5547
- uses: actions/github-script@v6
5648
with:

.github/workflows/bundlesize.yaml

Lines changed: 0 additions & 20 deletions
This file was deleted.

.github/workflows/pull-request.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ jobs:
1212
if: 'github.event.pull_request.draft == false'
1313
uses: ./.github/workflows/lint.yaml
1414

15-
bundlesize:
16-
if: 'github.event.pull_request.draft == false'
17-
uses: ./.github/workflows/bundlesize.yaml
18-
1915
fail_if_pull_request_is_draft:
2016
if: github.event.pull_request.draft == true
2117
runs-on: ubuntu-18.04

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,8 @@
1212
"stylelint": "stylelint \"src/**/*.css\"",
1313
"prettier": "prettier --config ./.prettierrc.json --write \"src/**/*{.js,.jsx,.ts,.tsx,.css}\"",
1414
"prepare": "husky install",
15-
"bundlesize": "bundlesize",
1615
"esbuild": "esbuild",
1716
"test": "jest",
18-
"postbuild": "npm run types && npm run bundlesize",
1917
"prepublishOnly": "npm run build"
2018
},
2119
"types": "dist/react-tooltip.d.ts",
@@ -67,7 +65,6 @@
6765
"@types/react-test-renderer": "^18.0.0",
6866
"@typescript-eslint/eslint-plugin": "5.54.0",
6967
"@typescript-eslint/parser": "5.54.0",
70-
"bundlesize": "^0.18.1",
7168
"css-loader": "6.7.3",
7269
"esbuild": "0.17.11",
7370
"esbuild-css-modules-plugin": "^2.7.1",

yarn.lock

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1870,14 +1870,6 @@ braces@^3.0.2, braces@~3.0.2:
18701870
dependencies:
18711871
fill-range "^7.0.1"
18721872

1873-
brotli-size@0.1.0:
1874-
version "0.1.0"
1875-
resolved "https://registry.yarnpkg.com/brotli-size/-/brotli-size-0.1.0.tgz#a2c518096c7c1a75e9e66908a42cd9dc77d2b69f"
1876-
integrity sha512-5ny7BNvpe2TSmdafF1T9dnFYp3AIrJ8qJt29K0DQJzORlK38LBim/CmlY26JtreV6SWmXza7Oa+9m61SzvxR0Q==
1877-
dependencies:
1878-
duplexer "^0.1.1"
1879-
iltorb "^2.4.3"
1880-
18811873
brotli-size@4.0.0:
18821874
version "4.0.0"
18831875
resolved "https://registry.yarnpkg.com/brotli-size/-/brotli-size-4.0.0.tgz#a05ee3faad3c0e700a2f2da826ba6b4d76e69e5e"
@@ -1994,22 +1986,6 @@ builtins@^1.0.3:
19941986
resolved "https://registry.yarnpkg.com/builtins/-/builtins-1.0.3.tgz#cb94faeb61c8696451db36534e1422f94f0aee88"
19951987
integrity sha512-uYBjakWipfaO/bXI7E8rq6kpwHRZK5cNYrUv2OzZSI/FvmdMyXJ2tG9dKcjEC5YHmHpUAwsargWIZNWdxb/bnQ==
19961988

1997-
bundlesize@^0.18.1:
1998-
version "0.18.1"
1999-
resolved "https://registry.yarnpkg.com/bundlesize/-/bundlesize-0.18.1.tgz#17b5c158e7a0d01d70c65c616d87783dfd4b55f3"
2000-
integrity sha512-NAsKBH6BeVmDopoa4tod0m5/koM7iLY3saKyGn7wyAravBYmKNUpDJba4zyVhwRm5Dw9WXv8FIO0N//tCkx68Q==
2001-
dependencies:
2002-
axios "^0.21.1"
2003-
brotli-size "0.1.0"
2004-
bytes "^3.1.0"
2005-
ci-env "^1.4.0"
2006-
commander "^2.20.0"
2007-
cosmiconfig "^5.2.1"
2008-
github-build "^1.2.2"
2009-
glob "^7.1.4"
2010-
gzip-size "^4.0.0"
2011-
prettycli "^1.4.3"
2012-
20131989
bytes@3.1.2, bytes@^3.1.0:
20141990
version "3.1.2"
20151991
resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.2.tgz#8b0beeb98605adf1b128fa4386403c009e0221a5"
@@ -4196,17 +4172,6 @@ ignore@^5.1.1, ignore@^5.1.8, ignore@^5.2.0:
41964172
resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.4.tgz#a291c0c6178ff1b960befe47fcdec301674a6324"
41974173
integrity sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==
41984174

4199-
iltorb@^2.4.3:
4200-
version "2.4.5"
4201-
resolved "https://registry.yarnpkg.com/iltorb/-/iltorb-2.4.5.tgz#d64434b527099125c6839ed48b666247a172ef87"
4202-
integrity sha512-EMCMl3LnnNSZJS5QrxyZmMTaAC4+TJkM5woD+xbpm9RB+mFYCr7C05GFE3TEGCsVQSVHmjX+3sf5AiwsylNInQ==
4203-
dependencies:
4204-
detect-libc "^1.0.3"
4205-
nan "^2.14.0"
4206-
npmlog "^4.1.2"
4207-
prebuild-install "^5.3.3"
4208-
which-pm-runs "^1.0.0"
4209-
42104175
immutable@^3:
42114176
version "3.8.2"
42124177
resolved "https://registry.yarnpkg.com/immutable/-/immutable-3.8.2.tgz#c2439951455bb39913daf281376f1530e104adf3"

0 commit comments

Comments
 (0)