Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .env-cmdrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"test": {
"SYNCKIT_TS_RUNNER": "swc"
},
"version-ci": {
"IN_VERSION_CI_SCRIPT": "true"
}
Expand Down
17 changes: 15 additions & 2 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,21 @@ on:
branches:
- master

permissions: {}

# Allow one concurrent deployment
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
release:
# prevents this action from running on forks
if: github.repository == 'intlify/eslint-plugin-vue-i18n'
permissions:
contents: write # to create release (changesets/action)
id-token: write # OpenID Connect token needed for provenance
pull-requests: write # to create pull request (changesets/action)
name: Release
runs-on: ubuntu-latest
steps:
Expand All @@ -16,10 +29,10 @@ jobs:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0

- name: Setup Node.js 18
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 'lts/*'

- uses: pnpm/action-setup@v4

Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
name: Test

on:
push:
branches-ignore:
- gh-pages
branches:
- master
pull_request:
branches:
- master
env:
CI: true

# Allow one concurrent deployment
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
lint:
name: 'Lint'
Expand Down
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@
"lint:prettier": "prettier --check .",
"prerelease": "pnpm run test && pnpm run build",
"release": "changeset publish",
"test": "mocha --require jiti/register \"./tests/lib/**/*.ts\" --timeout 5000",
"test:debug": "mocha --require jiti/register \"./tests/lib/**/*.ts\"",
"test:coverage": "nyc mocha --require jiti/register \"./tests/lib/**/*.ts\" --timeout 60000",
"test:integrations": "mocha --require jiti/register \"./tests/integrations/*.ts\" --timeout 60000",
"test": "env-cmd -e test -- mocha --require @swc-node/register \"./tests/lib/**/*.ts\" --timeout 5000",
"test:debug": "env-cmd -e test -- mocha --require @swc-node/register \"./tests/lib/**/*.ts\"",
"test:coverage": "nyc env-cmd -e test -- mocha --require @swc-node/register \"./tests/lib/**/*.ts\" --timeout 60000",
"test:integrations": "mocha --require @swc-node/register \"./tests/integrations/*.ts\" --timeout 60000",
"new": "jiti ./scripts/new-rule.ts",
"version:ci": "env-cmd -e version-ci pnpm run generate && changeset version",
"changeset": "changeset"
Expand All @@ -80,6 +80,7 @@
"devDependencies": {
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.26.2",
"@swc-node/register": "^1.11.1",
"@types/debug": "^4.1.8",
"@types/eslint-scope": "^8.0.0",
"@types/glob": "^9.0.0",
Expand All @@ -106,7 +107,7 @@
"json-schema": "^0.4.0",
"jsonc-eslint-parser": "^2.3.0",
"lint-staged": "^16.0.0",
"mocha": "^11.0.0",
"mocha": "^11.7.5",
"monaco-editor": "^0.52.0",
"npm-run-all2": "8.0.4",
"nyc": "^17.0.0",
Expand Down
Loading