Skip to content

Commit

Permalink
Merge pull request #150 from thom4parisot/feature/node-lts
Browse files Browse the repository at this point in the history
  • Loading branch information
thom4parisot authored Oct 11, 2024
2 parents b758887 + 359d4fa commit 3c7bacf
Show file tree
Hide file tree
Showing 5 changed files with 6,348 additions and 29 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Node applications

on:
push:
branches:
- $default-branch
tags:
- 'v*'
pull_request:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm

- name: Install and test
run: npm clean-install-test -- --tldjs-update-rules

- name: Publish on npm
if: github.ref_type == 'tag'
run: |
npm run build
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,3 @@ coverage*
rules.json
tld.js
tld.min.js

package-lock.json
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20
Loading

0 comments on commit 3c7bacf

Please sign in to comment.