Skip to content

Commit

Permalink
Merge branch 'master' into tld
Browse files Browse the repository at this point in the history
  • Loading branch information
thom4parisot authored Oct 11, 2024
2 parents 5c78484 + e67858e commit 5ba93fd
Show file tree
Hide file tree
Showing 6 changed files with 6,355 additions and 33 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Node applications

on:
push:
branches:
- master
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: Code coverage
uses: coverallsapp/github-action@v2

- 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
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# tld.js [![Backers on Open Collective](https://opencollective.com/tldjs/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/tldjs/sponsors/badge.svg)](#sponsors) [![Build Status][badge-ci]](http://travis-ci.org/oncletom/tld.js) ![][badge-downloads]
# tld.js [![Backers on Open Collective](https://opencollective.com/tldjs/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/tldjs/sponsors/badge.svg)](#sponsors) [![Coverage Status](https://coveralls.io/repos/github/thom4parisot/tld.js/badge.svg?branch=master)](https://coveralls.io/github/thom4parisot/tld.js?branch=master) [![tests](https://github.com/thom4parisot/tld.js/actions/workflows/main.yml/badge.svg)](https://github.com/thom4parisot/tld.js/actions/workflows/main.yml) ![][badge-downloads]

> `tld.js` is a Node.js module written in JavaScript to work against complex domain names, subdomains and well-known TLDs.
Expand Down Expand Up @@ -296,7 +296,6 @@ Support this project by becoming a sponsor. Your logo will show up here with a l

[MIT License](LICENSE).

[badge-ci]: https://secure.travis-ci.org/oncletom/tld.js.svg?branch=master
[badge-downloads]: https://img.shields.io/npm/dm/tldjs.svg

[public suffix list]: https://publicsuffix.org/list/
Expand Down
Loading

0 comments on commit 5ba93fd

Please sign in to comment.