Skip to content

Commit afcd9e8

Browse files
committed
chore: repository maintenance
1 parent 915ce6d commit afcd9e8

File tree

5 files changed

+518
-128
lines changed

5 files changed

+518
-128
lines changed

.env-cmdrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"test": {
3+
"SYNCKIT_TS_RUNNER": "swc"
4+
},
25
"version-ci": {
36
"IN_VERSION_CI_SCRIPT": "true"
47
}

.github/workflows/Release.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,21 @@ on:
55
branches:
66
- master
77

8+
permissions: {}
9+
10+
# Allow one concurrent deployment
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
815
jobs:
916
release:
17+
# prevents this action from running on forks
18+
if: github.repository == 'intlify/eslint-plugin-vue-i18n'
19+
permissions:
20+
contents: write # to create release (changesets/action)
21+
id-token: write # OpenID Connect token needed for provenance
22+
pull-requests: write # to create pull request (changesets/action)
1023
name: Release
1124
runs-on: ubuntu-latest
1225
steps:
@@ -16,10 +29,10 @@ jobs:
1629
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
1730
fetch-depth: 0
1831

19-
- name: Setup Node.js 18
32+
- name: Setup Node.js
2033
uses: actions/setup-node@v4
2134
with:
22-
node-version: 18
35+
node-version: 'lts/*'
2336

2437
- uses: pnpm/action-setup@v4
2538

.github/workflows/test.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
name: Test
2+
23
on:
34
push:
4-
branches-ignore:
5-
- gh-pages
5+
branches:
6+
- master
67
pull_request:
8+
branches:
9+
- master
710
env:
811
CI: true
912

13+
# Allow one concurrent deployment
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: true
17+
1018
jobs:
1119
lint:
1220
name: 'Lint'

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@
5151
"lint:prettier": "prettier --check .",
5252
"prerelease": "pnpm run test && pnpm run build",
5353
"release": "changeset publish",
54-
"test": "mocha --require jiti/register \"./tests/lib/**/*.ts\" --timeout 5000",
55-
"test:debug": "mocha --require jiti/register \"./tests/lib/**/*.ts\"",
56-
"test:coverage": "nyc mocha --require jiti/register \"./tests/lib/**/*.ts\" --timeout 60000",
57-
"test:integrations": "mocha --require jiti/register \"./tests/integrations/*.ts\" --timeout 60000",
54+
"test": "env-cmd -e test -- mocha --require @swc-node/register \"./tests/lib/**/*.ts\" --timeout 5000",
55+
"test:debug": "env-cmd -e test -- mocha --require @swc-node/register \"./tests/lib/**/*.ts\"",
56+
"test:coverage": "nyc env-cmd -e test -- mocha --require @swc-node/register \"./tests/lib/**/*.ts\" --timeout 60000",
57+
"test:integrations": "mocha --require @swc-node/register \"./tests/integrations/*.ts\" --timeout 60000",
5858
"new": "jiti ./scripts/new-rule.ts",
5959
"version:ci": "env-cmd -e version-ci pnpm run generate && changeset version",
6060
"changeset": "changeset"
@@ -80,6 +80,7 @@
8080
"devDependencies": {
8181
"@changesets/changelog-github": "^0.5.0",
8282
"@changesets/cli": "^2.26.2",
83+
"@swc-node/register": "^1.11.1",
8384
"@types/debug": "^4.1.8",
8485
"@types/eslint-scope": "^8.0.0",
8586
"@types/glob": "^9.0.0",
@@ -106,7 +107,7 @@
106107
"json-schema": "^0.4.0",
107108
"jsonc-eslint-parser": "^2.3.0",
108109
"lint-staged": "^16.0.0",
109-
"mocha": "^11.0.0",
110+
"mocha": "^11.7.5",
110111
"monaco-editor": "^0.52.0",
111112
"npm-run-all2": "8.0.4",
112113
"nyc": "^17.0.0",

0 commit comments

Comments
 (0)