jstink 1.2.5 → 1.2.7

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.
@@ -4,22 +4,13 @@
4
4
  name: Node.js Package
5
5
 
6
6
  on:
7
- release:
8
- types: [created]
7
+ push:
8
+ tags:
9
+ - 'v*.*.*'
9
10
 
10
11
  jobs:
11
- build:
12
- runs-on: ubuntu-latest
13
- steps:
14
- - uses: actions/checkout@v4
15
- - uses: actions/setup-node@v3
16
- with:
17
- node-version: 20
18
- - run: npm ci
19
- - run: npm test
20
12
 
21
13
  publish-npm:
22
- needs: build
23
14
  runs-on: ubuntu-latest
24
15
  steps:
25
16
  - uses: actions/checkout@v4
@@ -28,6 +19,8 @@ jobs:
28
19
  node-version: 20
29
20
  registry-url: https://registry.npmjs.org/
30
21
  - run: npm ci
22
+ - run: npm test
31
23
  - run: npm publish
32
24
  env:
33
25
  NODE_AUTH_TOKEN: ${{secrets.npm_token}}
26
+ - uses: softprops/action-gh-release@v2
package/Makefile ADDED
@@ -0,0 +1,9 @@
1
+ VERSION := $(shell jq -r '.version' package.json)
2
+
3
+ tag:
4
+ @if ! git rev-parse "v$(VERSION)" >/dev/null 2>&1; then \
5
+ git tag -a v$(VERSION) -m "Release $(VERSION)"; \
6
+ fi
7
+
8
+ release: tag
9
+ git push origin v$(VERSION)
package/package.json CHANGED
@@ -1,11 +1,10 @@
1
1
  {
2
2
  "name": "jstink",
3
- "version": "1.2.5",
3
+ "version": "1.2.7",
4
4
  "description": "A simple, easy-to-use Javascript crytopgraphy library.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
7
- "test": "jest",
8
- "prepublish": "npm test"
7
+ "test": "jest"
9
8
  },
10
9
  "author": "Andy Caine",
11
10
  "license": "MIT",
@@ -16,7 +15,7 @@
16
15
  "testEnvironment": "node"
17
16
  },
18
17
  "dependencies": {
19
- "@aws-sdk/client-kms": "^3.693.0",
18
+ "@aws-sdk/client-kms": "^3.777.0",
20
19
  "google-protobuf": "^3.21.4"
21
20
  },
22
21
  "repository": {