Skip to content

Commit 45279a5

Browse files
committed
upgrade dev dependencies, clean up repository
1 parent 7e27fa3 commit 45279a5

7 files changed

Lines changed: 4642 additions & 3081 deletions

File tree

.github/workflows/main.yml

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,23 @@
1-
name: Create Relase & Publish Package
1+
name: Test Package
22

3-
on:
4-
push:
5-
tags:
6-
- 'v*'
3+
on: push
74

8-
env:
9-
NODE_VERSION: 20
5+
concurrency:
6+
group: ${{ github.ref }}
7+
cancel-in-progress: true
108

119
jobs:
12-
build:
10+
test:
1311
runs-on: ubuntu-22.04
14-
timeout-minutes: 5
12+
timeout-minutes: 15
13+
strategy:
14+
matrix:
15+
node_version: [16, 18, 20]
1516
steps:
1617
- uses: actions/checkout@v4
17-
- uses: actions/github-script@v7
18-
with:
19-
script: |
20-
github.rest.repos.createRelease({
21-
owner: context.repo.owner,
22-
repo: context.repo.repo,
23-
tag_name: '${{ github.ref }}',
24-
name: 'Release ${{ github.ref_name }}'
25-
})
2618
- uses: aboutbits/github-actions-node/setup-and-install@v2
2719
with:
28-
node-version: ${{ env.NODE_VERSION }}
29-
registry-url: 'https://registry.npmjs.org'
30-
- run: npm publish
31-
env:
32-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
20+
node-version: ${{ matrix.node_version }}
21+
- run: npm run lint
22+
- run: npm run typecheck
23+
- run: npm run test

.github/workflows/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Create Relase & Publish Package
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
env:
9+
NODE_VERSION: 20
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-22.04
14+
timeout-minutes: 5
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/github-script@v7
18+
with:
19+
script: |
20+
github.rest.repos.createRelease({
21+
owner: context.repo.owner,
22+
repo: context.repo.repo,
23+
tag_name: '${{ github.ref }}',
24+
name: 'Release ${{ github.ref_name }}'
25+
})
26+
- uses: aboutbits/github-actions-node/setup-and-install@v2
27+
with:
28+
node-version: ${{ env.NODE_VERSION }}
29+
registry-url: 'https://registry.npmjs.org'
30+
- run: npm publish
31+
env:
32+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/test.yml

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

.gitignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@
77

88
# Project
99
/node_modules
10-
/dist
1110
/translations-template.json
1211

13-
# ESLint
12+
# Build
13+
/dist
14+
*.tsbuildinfo
15+
16+
# Cache
1417
.eslintcache

0 commit comments

Comments
 (0)