Skip to content

Commit 23255f6

Browse files
committed
Merge remote-tracking branch 'upstream/main'
2 parents bd4ecba + e395d5b commit 23255f6

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

.github/workflows/validate.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ on:
66
# e.g. "12.x" or "8.x"
77
- '[0-9]+.x'
88
- 'main'
9-
- 'next'
10-
- 'next-major'
119
- 'beta'
1210
- 'alpha'
1311
- '!all-contributors/**'
@@ -29,7 +27,7 @@ jobs:
2927
# Otherwise we would not know if the problem is tied to the Node.js version
3028
fail-fast: false
3129
matrix:
32-
node: [18, 20]
30+
node: [18, 24]
3331
runs-on: ubuntu-latest
3432
steps:
3533
- name: ⬇️ Checkout repo
@@ -56,7 +54,9 @@ jobs:
5654
run: npm run validate
5755

5856
release:
57+
environment: production
5958
permissions:
59+
id-token: write # Required for OIDC
6060
contents: write # to create release tags (cycjimmy/semantic-release-action)
6161
issues: write # to post release that resolves an issue
6262

@@ -72,7 +72,7 @@ jobs:
7272
- name: ⎔ Setup node
7373
uses: actions/setup-node@v3
7474
with:
75-
node-version: 18
75+
node-version: 24
7676

7777
- name: 📥 Download deps
7878
uses: bahmutov/npm-install@v1
@@ -83,18 +83,15 @@ jobs:
8383
run: npm run build
8484

8585
- name: 🚀 Release
86-
uses: cycjimmy/semantic-release-action@v2
86+
uses: cycjimmy/semantic-release-action@v5
8787
with:
88-
semantic_version: 17
88+
semantic_version: 25
8989
branches: |
9090
[
9191
'+([0-9])?(.{+([0-9]),x}).x',
9292
'main',
93-
'next',
94-
'next-major',
9593
{name: 'beta', prerelease: true},
9694
{name: 'alpha', prerelease: true}
9795
]
9896
env:
9997
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
100-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@
6363
"@babel/runtime": "^7.12.5",
6464
"@types/aria-query": "^5.0.1",
6565
"aria-query": "5.3.0",
66-
"chalk": "^4.1.0",
6766
"dom-accessibility-api": "^0.5.9",
6867
"lz-string": "^1.5.0",
68+
"picocolors": "1.1.1",
6969
"pretty-format": "^27.0.2"
7070
},
7171
"devDependencies": {
@@ -80,6 +80,7 @@
8080
"typescript": "^4.1.2"
8181
},
8282
"overrides": {
83+
"@babel/helper-compilation-targets": "7.24.7",
8384
"browserslist": "4.21.8",
8485
"caniuse-lite": "1.0.30001502"
8586
},

src/get-user-code-frame.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// We try to load node dependencies
2-
let chalk = null
2+
let picocolors = null
33
let readFileSync = null
44
let codeFrameColumns = null
55

@@ -11,7 +11,7 @@ try {
1111
module,
1212
'@babel/code-frame',
1313
).codeFrameColumns
14-
chalk = nodeRequire.call(module, 'chalk')
14+
picocolors = nodeRequire.call(module, 'picocolors')
1515
} catch {
1616
// We're in a browser environment
1717
}
@@ -46,7 +46,7 @@ function getCodeFrame(frame) {
4646
linesBelow: 0,
4747
},
4848
)
49-
return `${chalk.dim(frameLocation)}\n${codeFrame}\n`
49+
return `${picocolors.dim(frameLocation)}\n${codeFrame}\n`
5050
}
5151

5252
function getUserCodeFrame() {

0 commit comments

Comments
 (0)