Skip to content

Commit 4a36383

Browse files
nejchtheoludwig
authored andcommitted
fix(release): allow downloading binary via proxy again (#407)
Co-authored-by: Théo LUDWIG <contact@theoludwig.fr>
1 parent 64a65fa commit 4a36383

16 files changed

Lines changed: 5865 additions & 3889 deletions
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"parser": "@typescript-eslint/parser",
33
"plugins": ["@typescript-eslint", "prettier"],
4-
"extends": ["plugin:@typescript-eslint/recommended", "prettier"]
4+
"extends": ["plugin:@typescript-eslint/recommended", "prettier"],
5+
"rules": {
6+
"prettier/prettier": "error"
7+
}
58
}

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ jobs:
1515
- uses: actions/setup-node@v4
1616
with:
1717
node-version: 18
18-
cache: 'npm'
18+
cache: "npm"
1919

2020
- run: npm ci
21-
- run: npm start
21+
- run: npm run build
2222
- run: npm run lint:commit -- --to "${{ github.sha }}"
2323
- run: npm run lint:eslint
24+
- run: npm run lint:prettier
2425
- run: npm run test
26+
- run: npm run start

.github/workflows/codeql.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: "CodeQL"
22

33
on:
44
push:
5-
branches: [ "master" ]
5+
branches: ["master"]
66
pull_request:
7-
branches: [ "master" ]
7+
branches: ["master"]
88
schedule:
99
- cron: "47 18 * * 3"
1010

@@ -20,7 +20,7 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
language: [ javascript ]
23+
language: [javascript]
2424

2525
steps:
2626
- name: Checkout

.github/workflows/release.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
1-
name: 'Release'
1+
name: "Release"
22

33
on:
44
push:
55
branches: [master, beta]
66

77
jobs:
88
release:
9-
runs-on: 'ubuntu-latest'
9+
runs-on: "ubuntu-latest"
1010
permissions:
11-
contents: 'write'
12-
issues: 'write'
13-
pull-requests: 'write'
14-
id-token: 'write'
11+
contents: "write"
12+
issues: "write"
13+
pull-requests: "write"
14+
id-token: "write"
1515
steps:
16-
- uses: 'actions/checkout@v4'
16+
- uses: "actions/checkout@v4"
1717
with:
1818
fetch-depth: 0
1919
persist-credentials: false
2020

21-
- uses: 'actions/setup-node@v4'
21+
- uses: "actions/setup-node@v4"
2222
with:
2323
node-version: 18
24-
cache: 'npm'
24+
cache: "npm"
2525

26-
- run: 'npm ci'
26+
- run: "npm ci"
2727

28-
- run: 'npm run start'
28+
- run: "npm run build"
2929

30-
- name: 'Verify the integrity of provenance attestations and registry signatures for installed dependencies'
31-
run: 'npm audit signatures'
30+
- name: "Verify the integrity of provenance attestations and registry signatures for installed dependencies"
31+
run: "npm audit signatures"
3232

33-
- name: 'Release'
34-
run: 'npm run release'
33+
- name: "Release"
34+
run: "npm run release"
3535
env:
3636
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3737
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.prettierrc

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

.prettierrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"semi": false
3+
}

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"editor.formatOnSave": true,
3+
"editor.defaultFormatter": "esbenp.prettier-vscode",
34
"editor.codeActionsOnSave": {
4-
"source.fixAll": true
5+
"source.fixAll": "explicit"
56
}
67
}

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ Otherwise you could clone the repository and execute the script manually.
3838
git clone https://github.com/editorconfig-checker/editorconfig-checker.javascript
3939
cd editorconfig-checker.javascript
4040
npm install
41-
npm start
41+
npm run build
4242
npm test
43+
npm start
4344
```
4445

4546
## Usage

jest.config.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"preset": "ts-jest",
3+
"testEnvironment": "node"
4+
}

0 commit comments

Comments
 (0)