Adds support for native URL parsing if node API is unavailable #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}} |