crawler-user-agents 1.0.121 → 1.0.122

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,44 @@
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
3
+
4
+ name: Node.js Package
5
+
6
+ on:
7
+ push:
8
+ branches:
9
+ - master
10
+
11
+ 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: 16
19
+ - run: pip3 install jsonschema pytest
20
+ - run: py.test -vv
21
+ - run: python3 validate.py
22
+ - run: php validate.php
23
+
24
+ publish-npm:
25
+ needs: build
26
+ runs-on: ubuntu-latest
27
+ permissions:
28
+ id-token: write # To attach provenance to the published package
29
+ environment:
30
+ name: npm_token
31
+ url: https://www.npmjs.com/package/crawler-user-agents
32
+ steps:
33
+ - uses: actions/checkout@v4
34
+ - uses: actions/setup-node@v4
35
+ with:
36
+ node-version: 16
37
+ registry-url: https://registry.npmjs.org/
38
+ - run: npm install pacote@11.1.11
39
+ - run: git checkout .
40
+ - run: npm version --no-git-tag-version `node -e 'pacote=require("pacote");pacote.manifest("crawler-user-agents").then(pkgJson => { console.log(pkgJson.version); });'`
41
+ - run: npm version --no-git-tag-version patch
42
+ - run: npm publish --provenance
43
+ env:
44
+ NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
package/.travis.yml CHANGED
@@ -14,13 +14,3 @@ script:
14
14
  - git checkout .
15
15
  - npm version `node -e 'pacote=require("pacote");pacote.manifest("crawler-user-agents").then(pkgJson => { console.log(pkgJson.version); });'`
16
16
  - npm version patch
17
-
18
- deploy:
19
- provider: npm
20
- email: martin.monperrus@gnieh.org
21
- skip_cleanup: true
22
- api_key:
23
- secure: DAS1IgbrU085kpY4acrByrU2oWQq2HbP8aNye/Wb7nJIjT2Hv+DrbGoZ38Qiz8szHGmOy0DwtwJGPL6dhM7cC+2PBn5Pu6GzeORCSh+KlrRFIVI09A9BRc6TGNkJIr7ddP0H69U+OcdL53noBeMK4q2nxM6neCZM4Aa45r1jptI=
24
- on:
25
- repo: monperrus/crawler-user-agents
26
- branch: master
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crawler-user-agents",
3
- "version": "1.0.121",
3
+ "version": "1.0.122",
4
4
  "main": "crawler-user-agents.json",
5
5
  "typings": "./index.d.ts",
6
6
  "author": "Martin Monperrus <martin.monperrus@gnieh.org>",
@@ -1,8 +0,0 @@
1
- # pytest cache directory #
2
-
3
- This directory contains data from the pytest's cache plugin,
4
- which provides the `--lf` and `--ff` options, as well as the `cache` fixture.
5
-
6
- **Do not** commit this to version control.
7
-
8
- See [the docs](https://docs.pytest.org/en/stable/how-to/cache.html) for more information.