Skip to content

Commit aaa87e7

Browse files
authored
Update repo (#40)
* Update repo * Update lock
1 parent 1e2b1e6 commit aaa87e7

File tree

4 files changed

+400
-12
lines changed

4 files changed

+400
-12
lines changed

.github/workflows/lint.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,16 @@ jobs:
99
name: Run ESLint
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v1
13-
- uses: actions/setup-node@v1
14-
with:
15-
node-version: '12.x'
16-
- run: npm install
17-
- run: npm run lint
12+
- name: Checkout the repository
13+
uses: actions/checkout@v4
14+
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version-file: '.nvmrc'
19+
20+
- name: Install dependencies
21+
run: npm ci
22+
23+
- name: Run ESLint
24+
run: npm run lint

.github/workflows/publish.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Publish
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
publish:
8+
name: Publish NPM package
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout the repository
12+
uses: actions/checkout@v3
13+
14+
- name: Setup Node.js
15+
uses: actions/setup-node@v3
16+
with:
17+
node-version-file: '.nvmrc'
18+
19+
- name: Install dependencies
20+
run: npm ci
21+
22+
- name: Run tests
23+
run: npm test
24+
25+
- name: Publish package
26+
uses: JS-DevTools/npm-publish@v2
27+
with:
28+
token: ${{ secrets.NPM_TOKEN_ORG }}
29+
access: public

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
18.17.1

0 commit comments

Comments
 (0)