Skip to content

Commit 54838d1

Browse files
authored
Merge pull request #54 from crswll/action-updates
2 parents cda7554 + 117bb6a commit 54838d1

File tree

5 files changed

+660
-2270
lines changed

5 files changed

+660
-2270
lines changed

.github/workflows/npm-publish.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,24 @@
11
name: npm-publish
2+
23
on:
34
push:
45
branches:
56
- main
7+
68
jobs:
79
npm-publish:
810
name: npm-publish
911
runs-on: ubuntu-latest
1012
steps:
11-
- name: Checkout repository
12-
uses: actions/checkout@v2
13-
- name: Publish if version has been updated
14-
uses: pascalgn/npm-publish-action@1.3.9
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: 20
17+
- run: npm ci
18+
- run: npm test
19+
- uses: pascalgn/npm-publish-action@1.3.9
20+
with:
21+
publish_command: npm
1522
env:
1623
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1724
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
test:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
14-
- uses: actions/setup-node@v3
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-node@v4
1515
with:
16-
node-version: 16.18.0
16+
node-version: 20
1717
- run: npm ci
1818
- run: npm test

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
## Test `npm run test`
44
This runs the **tests** once.
55

6-
## Test Watch: `npm run test:watch`
7-
This runs the tests and listens for file updates then runs the tests all over again.
6+
## Test Watch: `npm run test -- --watch`
7+
Runs the tests and listens for file updates.

0 commit comments

Comments
 (0)