Skip to content

Commit

Permalink
Merge pull request #54 from crswll/action-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
crswll authored May 5, 2024
2 parents cda7554 + 117bb6a commit 54838d1
Show file tree
Hide file tree
Showing 5 changed files with 660 additions and 2,270 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
name: npm-publish

on:
push:
branches:
- main

jobs:
npm-publish:
name: npm-publish
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Publish if version has been updated
uses: pascalgn/npm-publish-action@1.3.9
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm test
- uses: pascalgn/npm-publish-action@1.3.9
with:
publish_command: npm
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16.18.0
node-version: 20
- run: npm ci
- run: npm test
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
## Test `npm run test`
This runs the **tests** once.

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

0 comments on commit 54838d1

Please sign in to comment.