@questwork/q-utilities 0.1.17 → 0.1.18
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.
- package/.github/workflows/publish.yml +40 -0
- package/package.json +8 -7
- package/dist/index.min.cjs +0 -3629
- package/dist/q-utilities.esm.js +0 -3537
- package/dist/q-utilities.min.js +0 -3628
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
name: Publish to npm on Tag
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
tags:
|
|
5
|
+
- 'v*'
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
jobs:
|
|
8
|
+
publish:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
permissions:
|
|
11
|
+
contents: read
|
|
12
|
+
packages: write
|
|
13
|
+
# environment: production
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v4
|
|
16
|
+
with:
|
|
17
|
+
fetch-depth: 0 # Needed to get tag information
|
|
18
|
+
|
|
19
|
+
- name: Install pnpm
|
|
20
|
+
uses: pnpm/action-setup@v4
|
|
21
|
+
with:
|
|
22
|
+
version: 9
|
|
23
|
+
|
|
24
|
+
- uses: actions/setup-node@v4
|
|
25
|
+
with:
|
|
26
|
+
node-version: '20.x'
|
|
27
|
+
registry-url: https://registry.npmjs.org/
|
|
28
|
+
cache: 'pnpm'
|
|
29
|
+
|
|
30
|
+
- name: Install dependencies
|
|
31
|
+
run: pnpm install
|
|
32
|
+
|
|
33
|
+
# - name: Build
|
|
34
|
+
# run: pnpm run build --if-present
|
|
35
|
+
|
|
36
|
+
- name: Publish to npm
|
|
37
|
+
# if: steps.version-check.outputs.should_publish == 'true'
|
|
38
|
+
run: pnpm publish --no-git-checks --access public
|
|
39
|
+
env:
|
|
40
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/package.json
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@questwork/q-utilities",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.18",
|
|
4
4
|
"description": "Questwork QUtilities",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Questwork Consulting Limited",
|
|
7
|
+
"email": "info@questwork.com",
|
|
8
|
+
"url": "https://questwork.com/"
|
|
9
|
+
},
|
|
10
|
+
"license": "MIT",
|
|
5
11
|
"type": "module",
|
|
6
12
|
"exports": {
|
|
7
13
|
".": {
|
|
@@ -10,12 +16,6 @@
|
|
|
10
16
|
"default": "./dist/q-utilities.min.js"
|
|
11
17
|
}
|
|
12
18
|
},
|
|
13
|
-
"author": {
|
|
14
|
-
"name": "Questwork Consulting Limited",
|
|
15
|
-
"email": "info@questwork.com",
|
|
16
|
-
"url": "https://questwork.com/"
|
|
17
|
-
},
|
|
18
|
-
"license": "MIT",
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@aws-sdk/client-s3": "^3.812.0",
|
|
21
21
|
"@aws-sdk/client-sts": "^3.812.0",
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"build": "cross-env NODE_ENV=production minimize=false gulp",
|
|
45
45
|
"build:wp": "cross-env NODE_ENV=production minimize=false gulp wp",
|
|
46
46
|
"lint": "eslint .",
|
|
47
|
+
"test:helpers": "NODE_ENV=test mocha --exit 'lib/helpers/test.setup.js' 'lib/helpers/**/*.spec.js'",
|
|
47
48
|
"test:models": "NODE_ENV=test mocha --exit 'lib/models/test.setup.js' 'lib/models/**/*.spec.js'"
|
|
48
49
|
}
|
|
49
50
|
}
|