Skip to content

Commit f905126

Browse files
authored
Merge pull request #19 from remotemerge/code-update
Code update
2 parents fb7ef5e + adc1e36 commit f905126

File tree

6 files changed

+1402
-952
lines changed

6 files changed

+1402
-952
lines changed

.eslintrc.cjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
module.exports = {
22
env: {
33
browser: true,
4-
es2022: true,
4+
es2023: true,
55
node: true,
66
},
7+
plugins: ['@typescript-eslint', 'prettier'],
78
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
89
parser: '@typescript-eslint/parser',
910
parserOptions: {
1011
ecmaVersion: 'latest',
1112
sourceType: 'module',
1213
},
13-
plugins: ['@typescript-eslint'],
1414
rules: {
1515
indent: ['error', 2],
1616
'linebreak-style': ['error', 'unix'],

.github/workflows/install.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ jobs:
1414
strategy:
1515
matrix:
1616
os: [ ubuntu-latest, macos-latest, windows-latest ]
17-
node: [ 14, 16, 18, 'current' ]
17+
node: [ 14, 16, 18, 20, 'current' ]
1818

1919
# The type of runner that the job will run on
2020
runs-on: ${{ matrix.os }}
2121

2222
steps:
2323
- name: "Use specified Node.js version"
24-
uses: actions/setup-node@v3
24+
uses: actions/setup-node@v4
2525
with:
2626
node-version: ${{ matrix.node }}
2727

.github/workflows/production.yml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,29 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- name: "Checkout repository"
17-
uses: actions/checkout@v3
16+
- name: "Checkout the repository"
17+
uses: actions/checkout@v4
18+
19+
- name: "Use Node.js 20.x version"
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 20
23+
cache: 'npm'
24+
cache-dependency-path: package-lock.json
1825

1926
- name: "Install dependencies and build"
20-
run: npm install && npm run build
27+
run: npm ci && npm run build
2128

22-
# publish to NPM
23-
- uses: actions/setup-node@v3
24-
with:
25-
node-version: 'lts/*'
26-
registry-url: 'https://registry.npmjs.org'
27-
- run: npm publish ./dist --access public
29+
- name: "Publish to NPM"
30+
run: |
31+
npm config set registry https://registry.npmjs.org
32+
npm publish ./dist --access public
2833
env:
2934
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
3035

31-
# publish to GitHub
32-
- uses: actions/setup-node@v3
33-
with:
34-
node-version: 'lts/*'
35-
registry-url: 'https://npm.pkg.github.com'
36-
- run: npm publish ./dist
36+
- name: "Publish to GitHub"
37+
run: |
38+
npm config set registry https://npm.pkg.github.com
39+
npm publish ./dist
3740
env:
3841
NODE_AUTH_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}

.github/workflows/testing.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,17 @@ jobs:
1616

1717
steps:
1818
- name: "Checkout repository"
19-
uses: actions/checkout@v3
19+
uses: actions/checkout@v4
2020

21-
# Use nodejs LTS version
22-
- uses: actions/setup-node@v3
21+
# Use Node.js LTS version
22+
- uses: actions/setup-node@v4
2323
with:
24-
node-version: 'lts/*'
24+
node-version: 20
25+
cache: 'npm'
26+
cache-dependency-path: package-lock.json
2527

2628
- name: "Install dependencies and build"
27-
run: npm install && npm run build
29+
run: npm ci && npm run build
2830

2931
- name: "Run Tests"
3032
run: npm run test

0 commit comments

Comments
 (0)