Skip to content

Commit f8b8d8e

Browse files
committed
Update dependencies and CI
1 parent 934813f commit f8b8d8e

File tree

5 files changed

+2452
-2350
lines changed

5 files changed

+2452
-2350
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
env: {}
22

3-
# DO NOT EDIT BELOW - use `npx ghat fregante/ghatemplates/node`
3+
# FILE GENERATED WITH: npx ghat fregante/ghatemplates/node
4+
# SOURCE: https://github.com/fregante/ghatemplates
45

56
name: CI
67

@@ -24,8 +25,10 @@ jobs:
2425
- uses: actions/checkout@v2
2526
- name: install
2627
run: npm ci || npm install
28+
- name: build
29+
run: npm run build --if-present
2730
- name: AVA
28-
run: npm run ava
31+
run: npx ava
2932

3033
Build:
3134
runs-on: ubuntu-latest
@@ -34,4 +37,4 @@ jobs:
3437
- name: install
3538
run: npm ci || npm install
3639
- name: build
37-
run: npm run build --if-present
40+
run: npm run build

.github/workflows/esm-lint.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ env:
22
IMPORT_TEXT: import * as pageDetect from
33
NPM_MODULE_NAME: github-url-detection
44

5-
# DO NOT EDIT BELOW - use `npx ghat fregante/ghatemplates/esm-lint --exclude jobs.Snowpack`
5+
# FILE GENERATED WITH: npx ghat fregante/ghatemplates/esm-lint
6+
# SOURCE: https://github.com/fregante/ghatemplates
7+
# OPTIONS: {"exclude":["jobs.Snowpack"]}
68

79
name: ESM
810
on:
@@ -12,6 +14,7 @@ on:
1214
push:
1315
branches:
1416
- master
17+
- main
1518
jobs:
1619
Pack:
1720
runs-on: ubuntu-latest
@@ -20,7 +23,7 @@ jobs:
2023
- run: npm install
2124
- run: npm run build --if-present
2225
- run: npm pack --dry-run
23-
- run: npm pack --silent 2>/dev/null | xargs cat | tar -xz
26+
- run: npm pack --silent 2>/dev/null | xargs -n1 tar -xzf
2427
- uses: actions/upload-artifact@v2
2528
with:
2629
path: package
@@ -30,16 +33,16 @@ jobs:
3033
steps:
3134
- uses: actions/download-artifact@v2
3235
- run: npm install ./artifact
33-
- run: 'echo "${{ env.IMPORT_TEXT }} ''${{ env.NPM_MODULE_NAME }}''" > index.js'
34-
- run: webpack ./index.js
36+
- run: echo "${{ env.IMPORT_TEXT }} '${{ env.NPM_MODULE_NAME }}'" > index.js
37+
- run: webpack --entry ./index.js
3538
- run: cat dist/main.js
3639
Parcel:
3740
runs-on: ubuntu-latest
3841
needs: Pack
3942
steps:
4043
- uses: actions/download-artifact@v2
4144
- run: npm install ./artifact
42-
- run: 'echo "${{ env.IMPORT_TEXT }} ''${{ env.NPM_MODULE_NAME }}''" > index.js'
45+
- run: echo "${{ env.IMPORT_TEXT }} '${{ env.NPM_MODULE_NAME }}'" > index.js
4346
- run: npx parcel@1 build index.js
4447
- run: cat dist/index.js
4548
Rollup:
@@ -48,15 +51,15 @@ jobs:
4851
steps:
4952
- uses: actions/download-artifact@v2
5053
- run: npm install ./artifact rollup@2 @rollup/plugin-node-resolve
51-
- run: 'echo "${{ env.IMPORT_TEXT }} ''${{ env.NPM_MODULE_NAME }}''" > index.js'
54+
- run: echo "${{ env.IMPORT_TEXT }} '${{ env.NPM_MODULE_NAME }}'" > index.js
5255
- run: npx rollup -p node-resolve index.js
5356
TypeScript:
5457
runs-on: ubuntu-latest
5558
needs: Pack
5659
steps:
5760
- uses: actions/download-artifact@v2
5861
- run: npm install ./artifact
59-
- run: 'echo "${{ env.IMPORT_TEXT }} ''${{ env.NPM_MODULE_NAME }}''" > index.ts'
62+
- run: echo "${{ env.IMPORT_TEXT }} '${{ env.NPM_MODULE_NAME }}'" > index.ts
6063
- run: tsc index.ts
6164
- run: cat index.js
6265
Node:
@@ -67,6 +70,6 @@ jobs:
6770
- uses: actions/setup-node@v1
6871
with:
6972
node-version: 13.x
70-
- run: 'echo "${{ env.IMPORT_TEXT }} ''${{ env.NPM_MODULE_NAME }}''" > index.mjs'
73+
- run: echo "${{ env.IMPORT_TEXT }} '${{ env.NPM_MODULE_NAME }}'" > index.mjs
7174
- run: npm install ./artifact
7275
- run: node index.mjs

.github/workflows/npm-publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
env: {}
22

3-
# DO NOT EDIT BELOW, USE: npx ghat fregante/ghatemplates/npm-publish
3+
# FILE GENERATED WITH: npx ghat fregante/ghatemplates/npm-publish
4+
# SOURCE: https://github.com/fregante/ghatemplates
45

56
# Collaborators can publish a new version of what's on master via "workflow_dispatch"
67
# https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/

0 commit comments

Comments
 (0)