crawler-user-agents 1.0.123 → 1.0.125

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,25 @@
1
+ # run all tests for crawler-user-agents (python/php)
2
+
3
+ name: CI validation
4
+
5
+ on:
6
+ # https://stackoverflow.com/questions/64635032/github-actions-run-on-push-to-all-branches
7
+ push:
8
+ branches:
9
+ - '**'
10
+ pull_request:
11
+ branches:
12
+ - master
13
+
14
+ jobs:
15
+ build:
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+ - uses: actions/setup-node@v4
20
+ with:
21
+ node-version: 20
22
+ - run: pip3 install jsonschema pytest
23
+ - run: py.test -vv
24
+ - run: python3 validate.py
25
+ - run: php validate.php
@@ -1,28 +1,20 @@
1
- # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2
- # For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
1
+ # Continuous Delivery to https://www.npmjs.com/package/crawler-user-agents
2
+ # for each commit, with provenance
3
3
 
4
- name: Node.js Package
4
+ name: Deploy to NPM
5
5
 
6
6
  on:
7
- push:
8
- branches:
9
- - master
7
+ # push:
8
+ # branches:
9
+ # - master
10
+ workflow_run:
11
+ workflows: ["CI validation"]
12
+ branches: [master]
13
+ types:
14
+ - completed
10
15
 
11
16
  jobs:
12
- build:
13
- runs-on: ubuntu-latest
14
- steps:
15
- - uses: actions/checkout@v4
16
- - uses: actions/setup-node@v4
17
- with:
18
- node-version: 20
19
- - run: pip3 install jsonschema pytest
20
- - run: py.test -vv
21
- - run: python3 validate.py
22
- - run: php validate.php
23
-
24
17
  publish-npm:
25
- needs: build
26
18
  runs-on: ubuntu-latest
27
19
  permissions:
28
20
  id-token: write # To attach provenance to the published package
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crawler-user-agents",
3
- "version": "1.0.123",
3
+ "version": "1.0.125",
4
4
  "main": "crawler-user-agents.json",
5
5
  "typings": "./index.d.ts",
6
6
  "author": "Martin Monperrus <martin.monperrus@gnieh.org>",