Skip to content

Commit 785a5d4

Browse files
committed
Format with prettier
1 parent 7e79358 commit 785a5d4

17 files changed

+678
-560
lines changed

.github/workflows/publish.yml

+24-24
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,27 @@ jobs:
77
if: github.repository == 'dcodeIO/long.js'
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v1
11-
with:
12-
ref: main
13-
- uses: dcodeIO/setup-node-nvm@master
14-
with:
15-
node-version: current
16-
- name: Install dependencies
17-
run: npm ci
18-
- name: Build
19-
run: npm run build
20-
- name: Run tests
21-
run: npm test
22-
- name: Publish
23-
env:
24-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
26-
run: |
27-
VERSION=$(npx aspublish --version)
28-
if [ -z "$VERSION" ]; then
29-
echo "Changes do not trigger a release"
30-
else
31-
echo "Publishing new version: $VERSION"
32-
npx aspublish
33-
fi
10+
- uses: actions/checkout@v1
11+
with:
12+
ref: main
13+
- uses: dcodeIO/setup-node-nvm@master
14+
with:
15+
node-version: current
16+
- name: Install dependencies
17+
run: npm ci
18+
- name: Build
19+
run: npm run build
20+
- name: Run tests
21+
run: npm test
22+
- name: Publish
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
26+
run: |
27+
VERSION=$(npx aspublish --version)
28+
if [ -z "$VERSION" ]; then
29+
echo "Changes do not trigger a release"
30+
else
31+
echo "Publishing new version: $VERSION"
32+
npx aspublish
33+
fi

.github/workflows/test.yml

+22-12
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,34 @@ name: Test
22
on:
33
push:
44
branches:
5-
- main
5+
- main
66
pull_request:
77
workflow_dispatch:
88
jobs:
9+
lint:
10+
name: Check formatting
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-node@v4
15+
- name: Install dependencies
16+
run: npm ci --no-audit
17+
- name: Lint
18+
run: npm run lint
919
test:
10-
name: Test
20+
name: Build and test
1121
runs-on: ubuntu-latest
1222
strategy:
1323
matrix:
1424
node_version: ["current", "lts_latest"]
1525
steps:
16-
- uses: actions/checkout@v1.0.0
17-
- uses: dcodeIO/setup-node-nvm@master
18-
with:
19-
node-version: ${{ matrix.node_version }}
20-
- name: Install dependencies
21-
run: npm ci --no-audit
22-
- name: Build
23-
run: npm run build
24-
- name: Run tests
25-
run: npm test
26+
- uses: actions/checkout@v1.0.0
27+
- uses: dcodeIO/setup-node-nvm@master
28+
with:
29+
node-version: ${{ matrix.node_version }}
30+
- name: Install dependencies
31+
run: npm ci --no-audit
32+
- name: Build
33+
run: npm run build
34+
- name: Run tests
35+
run: npm test

.prettierrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default {};

0 commit comments

Comments
 (0)