Skip to content

Commit

Permalink
Update repo (#40)
Browse files Browse the repository at this point in the history
* Update repo

* Update lock
  • Loading branch information
inverse authored Sep 20, 2023
1 parent 1e2b1e6 commit aaa87e7
Show file tree
Hide file tree
Showing 4 changed files with 400 additions and 12 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,16 @@ jobs:
name: Run ESLint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- run: npm install
- run: npm run lint
- name: Checkout the repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'

- name: Install dependencies
run: npm ci

- name: Run ESLint
run: npm run lint
29 changes: 29 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish
on:
release:
types: [published]

jobs:
publish:
name: Publish NPM package
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm test

- name: Publish package
uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_TOKEN_ORG }}
access: public
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18.17.1
Loading

0 comments on commit aaa87e7

Please sign in to comment.