crawler-user-agents 1.3.0 → 1.5.0

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.
@@ -29,9 +29,17 @@ jobs:
29
29
  registry-url: https://registry.npmjs.org/
30
30
  - run: npm clean-install
31
31
  - run: git checkout .
32
+ # fetch the latest version from npm and set it in package.json
32
33
  - run: npm version --no-git-tag-version `node -e 'pacote=require("pacote");pacote.manifest("crawler-user-agents").then(pkgJson => { console.log(pkgJson.version); });'`
33
- # we now bump mino in order to trigger automated dependency updates
34
+ # we now bump the minor in package.json
34
35
  - run: npm version --no-git-tag-version minor
36
+ # publish this new version to npm
35
37
  - run: npm publish --provenance
36
38
  env:
37
39
  NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
40
+ - run: git config user.name "github-actions"
41
+ - run: git config user.email "github-actions@github.com"
42
+ - run: echo "NEW_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
43
+ - run: git tag "v$NEW_VERSION"
44
+ # publish this new version to github (to give the Go module a new version)
45
+ - run: git push origin "v$NEW_VERSION"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crawler-user-agents",
3
- "version": "1.3.0",
3
+ "version": "1.5.0",
4
4
  "main": "crawler-user-agents.json",
5
5
  "typings": "./index.d.ts",
6
6
  "author": "Martin Monperrus <martin.monperrus@gnieh.org>",