Skip to content
This repository was archived by the owner on Mar 10, 2026. It is now read-only.

Commit 8fa1bfe

Browse files
Add test workflow and update dependency versions (#8)
* Add test workflow and update dependency versions * Update test script
1 parent 20735ff commit 8fa1bfe

File tree

7 files changed

+2791
-761
lines changed

7 files changed

+2791
-761
lines changed

.file-updater.mjs

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

.github/workflows/deploy.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ jobs:
1111
steps:
1212
- name: Checkout repository
1313
uses: actions/checkout@v4
14-
with:
15-
fetch-depth: 0
1614

1715
- name: Set up Node.js
1816
uses: actions/setup-node@v4
@@ -22,6 +20,16 @@ jobs:
2220
- name: Install dependencies
2321
run: npm --color ci
2422

23+
- name: Read version from package.json
24+
run: |
25+
VERSION=$(node -p "require('./package.json').version")
26+
echo "version=$VERSION" >> $GITHUB_ENV
27+
28+
- name: Create Git tag
29+
run: |
30+
git tag ${{ env.version }}
31+
git push origin ${{ env.version }}
32+
2533
- name: Publish to npm
2634
run: npm publish --access public
2735
env:

.github/workflows/test.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
types: [opened, synchronize, reopened]
8+
9+
jobs:
10+
run-tests:
11+
name: Run tests
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: false
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version-file: .nvmrc
23+
24+
- name: Install dependencies
25+
run: npm --color ci
26+
27+
- name: Build
28+
run: npm --color run build
29+
30+
- name: Run lint
31+
run: npm --color run lint
32+
33+
- name: Run test
34+
run: npm --color run test

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v21.1.0
1+
v25.0.0

0 commit comments

Comments
 (0)