jstink 1.2.6 → 1.2.8

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,17 @@
4
4
  name: Node.js Package
5
5
 
6
6
  on:
7
- release:
8
- types: [created]
7
+ push:
8
+ tags:
9
+ - 'v*.*.*'
10
+
11
+ permissions:
12
+ id-token: write
13
+ contents: write
9
14
 
10
15
  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
16
 
21
17
  publish-npm:
22
- needs: build
23
18
  runs-on: ubuntu-latest
24
19
  steps:
25
20
  - uses: actions/checkout@v4
@@ -28,6 +23,8 @@ jobs:
28
23
  node-version: 20
29
24
  registry-url: https://registry.npmjs.org/
30
25
  - run: npm ci
26
+ - run: npm test
31
27
  - run: npm publish
32
28
  env:
33
29
  NODE_AUTH_TOKEN: ${{secrets.npm_token}}
30
+ - 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.6",
3
+ "version": "1.2.8",
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.715.0",
18
+ "@aws-sdk/client-kms": "^3.777.0",
20
19
  "google-protobuf": "^3.21.4"
21
20
  },
22
21
  "repository": {