file-obj-queue 3.0.19 → 3.0.44
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.
|
@@ -1,75 +1,49 @@
|
|
|
1
1
|
name: Publish Package To NPM
|
|
2
2
|
|
|
3
|
-
on:
|
|
3
|
+
on:
|
|
4
4
|
workflow_run:
|
|
5
5
|
workflows:
|
|
6
6
|
- Node.js CI
|
|
7
7
|
types:
|
|
8
8
|
- completed
|
|
9
|
-
|
|
9
|
+
|
|
10
10
|
jobs:
|
|
11
11
|
build:
|
|
12
12
|
runs-on: ubuntu-latest
|
|
13
13
|
steps:
|
|
14
|
-
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
- name: Setup Node.js
|
|
18
|
-
uses: actions/setup-node@v4
|
|
14
|
+
- uses: actions/checkout@v4
|
|
15
|
+
- uses: actions/setup-node@v4
|
|
19
16
|
with:
|
|
20
17
|
node-version: 20
|
|
21
|
-
|
|
22
|
-
-
|
|
23
|
-
run: npm install
|
|
24
|
-
|
|
25
|
-
- name: Run tests
|
|
26
|
-
run: npm test
|
|
18
|
+
- run: npm ci
|
|
19
|
+
- run: npm test
|
|
27
20
|
|
|
28
21
|
publish-npm:
|
|
29
22
|
needs: build
|
|
30
23
|
runs-on: ubuntu-latest
|
|
31
24
|
steps:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
- name: Get npm version
|
|
43
|
-
id: npm-version
|
|
44
|
-
run: |
|
|
45
|
-
npm -v
|
|
46
|
-
npmMajorVer=$(npm -v | cut -d. -f1)
|
|
47
|
-
echo "major=$npmMajorVer" >> $GITHUB_OUTPUT
|
|
48
|
-
- name: Disable prettier on older Node.js (8.x, 10.x, 12.x)
|
|
49
|
-
run: |
|
|
50
|
-
sed -i '/"prettier": "prettier/d' package.json
|
|
51
|
-
if: contains(fromJson('["8.x", "10.x", "12.x"]'), matrix.node-version)
|
|
52
|
-
|
|
53
|
-
- name: Install downgraded modules ${{ matrix.npm-i }}
|
|
54
|
-
run: |
|
|
55
|
-
npm install --save-dev ${{ matrix.npm-i }}
|
|
56
|
-
if [ ${{ steps.npm-version.outputs.major }} -le 5 ]; then
|
|
57
|
-
npm install
|
|
58
|
-
fi
|
|
59
|
-
if: matrix.npm-i != ''
|
|
25
|
+
- uses: actions/checkout@v4
|
|
26
|
+
- uses: actions/setup-node@v4
|
|
27
|
+
# with:
|
|
28
|
+
# registry-url: 'https://registry.npmjs.org/'
|
|
29
|
+
# node-version-file: '.nvmrc'
|
|
30
|
+
# cache: 'npm'
|
|
31
|
+
|
|
32
|
+
- name: Install npm packages
|
|
33
|
+
run: npm install
|
|
60
34
|
|
|
61
|
-
|
|
62
|
-
|
|
35
|
+
- name: Unit tests
|
|
36
|
+
run: npm test
|
|
63
37
|
|
|
64
|
-
-
|
|
65
|
-
|
|
38
|
+
# - name: Build Banana
|
|
39
|
+
# run: npm run banana -- --build --env prod
|
|
66
40
|
|
|
67
|
-
-
|
|
68
|
-
|
|
41
|
+
# - uses: actions/upload-artifact@v4
|
|
42
|
+
# with:
|
|
43
|
+
# name: banana
|
|
44
|
+
# path: ./build/
|
|
69
45
|
|
|
70
|
-
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
env:
|
|
75
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
46
|
+
# - name: Publish NPM package
|
|
47
|
+
# run: npm publish
|
|
48
|
+
# env:
|
|
49
|
+
# NPM_CONFIG_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
name: Test Variables
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_call:
|
|
5
|
+
inputs:
|
|
6
|
+
username:
|
|
7
|
+
description: 'A username passed from the caller workflow'
|
|
8
|
+
default: 'john-doe'
|
|
9
|
+
required: false
|
|
10
|
+
type: string
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
print-username:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- name: Print the input name to STDOUT
|
|
18
|
+
run: echo The username is ${{ inputs.username }}
|
|
19
|
+
# before_script:
|
|
20
|
+
# - echo "@products:registry=http://${CI_SERVER_HOST}:${CI_SERVER_PORT}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/">.npmrc
|
|
21
|
+
# - echo "//${CI_SERVER_HOST}:${CI_SERVER_PORT}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/:_authToken=${CI_JOB_TOKEN}">>.npmrc
|
package/.nvmrc
ADDED
|
Binary file
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"author": {
|
|
3
3
|
"name": "Jim Manton"
|
|
4
4
|
},
|
|
5
|
-
"version": "3.0.
|
|
5
|
+
"version": "3.0.44",
|
|
6
6
|
"bundleDependencies": [],
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@types/node": "^24.7.1",
|
|
@@ -44,4 +44,4 @@
|
|
|
44
44
|
"main": "app.js",
|
|
45
45
|
"name": "file-obj-queue",
|
|
46
46
|
"start": "node app.js"
|
|
47
|
-
}
|
|
47
|
+
}
|
package/test/package.js
CHANGED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
|
|
2
|
-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
|
3
|
-
|
|
4
|
-
name: Node.js CI
|
|
5
|
-
|
|
6
|
-
on:
|
|
7
|
-
push:
|
|
8
|
-
branches: [ "master" ]
|
|
9
|
-
pull_request:
|
|
10
|
-
branches: [ "master" ]
|
|
11
|
-
workflow_dispatch: {}
|
|
12
|
-
|
|
13
|
-
jobs:
|
|
14
|
-
build:
|
|
15
|
-
|
|
16
|
-
runs-on: ${{ matrix.os }}
|
|
17
|
-
|
|
18
|
-
defaults:
|
|
19
|
-
run:
|
|
20
|
-
shell: bash
|
|
21
|
-
|
|
22
|
-
strategy:
|
|
23
|
-
matrix:
|
|
24
|
-
os: [ubuntu-latest, windows-latest]
|
|
25
|
-
node-version: [8.x, 10.x, 12.x, 14.x, 16.x, 18.x]
|
|
26
|
-
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
|
27
|
-
include:
|
|
28
|
-
- node-version: 8.x
|
|
29
|
-
npm-i: "eslint@6.x eslint-config-airbnb-base@14.x eslint-config-prettier@6.x eslint-plugin-prettier@3.x fs-extra@8.x nyc@14.x tap@14.x chai@5.x colors@1.x compare-json-difference@0.x log4js-tagline@5.x mocha@10.x"
|
|
30
|
-
|
|
31
|
-
- node-version: 10.x
|
|
32
|
-
npm-i: "eslint@7.x fs-extra@9.x nyc@14.x tap@14.x chai@5.x colors@1.x compare-json-difference@0.x log4js-tagline@5.x mocha@10.x"
|
|
33
|
-
|
|
34
|
-
- node-version: 12.x
|
|
35
|
-
npm-i: "fs-extra@10.x nyc@14.x tap@14.x chai@5.x colors@1.x compare-json-difference@0.x log4js-tagline@5.x mocha@10.x"
|
|
36
|
-
|
|
37
|
-
- node-version: 14.x
|
|
38
|
-
npm-i: "nyc@14.x tap@14.x chai@5.x colors@1.x compare-json-difference@0.x log4js-tagline@5.x mocha@10.x"
|
|
39
|
-
|
|
40
|
-
steps:
|
|
41
|
-
- uses: actions/checkout@v3
|
|
42
|
-
- name: Use Node.js ${{ matrix.node-version }}
|
|
43
|
-
uses: actions/setup-node@v3
|
|
44
|
-
with:
|
|
45
|
-
node-version: ${{ matrix.node-version }}
|
|
46
|
-
cache: 'npm'
|
|
47
|
-
|
|
48
|
-
- name: Configure npm
|
|
49
|
-
run: npm config set loglevel error
|
|
50
|
-
|
|
51
|
-
- name: Get npm version
|
|
52
|
-
id: npm-version
|
|
53
|
-
run: |
|
|
54
|
-
npm -v
|
|
55
|
-
npmMajorVer=$(npm -v | cut -d. -f1)
|
|
56
|
-
echo "major=$npmMajorVer" >> $GITHUB_OUTPUT
|
|
57
|
-
- name: Disable prettier on older Node.js (8.x, 10.x)
|
|
58
|
-
run: |
|
|
59
|
-
sed -i '/"prettier": "prettier/d' package.json
|
|
60
|
-
if: contains(fromJson('["8.x", "10.x"'), matrix.node-version)
|
|
61
|
-
|
|
62
|
-
- name: Install downgraded modules ${{ matrix.npm-i }}
|
|
63
|
-
run: |
|
|
64
|
-
npm install --save-dev ${{ matrix.npm-i }}
|
|
65
|
-
if [ ${{ steps.npm-version.outputs.major }} -le 5 ]; then
|
|
66
|
-
npm install
|
|
67
|
-
fi
|
|
68
|
-
if: matrix.npm-i != ''
|
|
69
|
-
|
|
70
|
-
- run: npm install
|
|
71
|
-
if: matrix.npm-i == '' && steps.npm-version.outputs.major <= 5
|
|
72
|
-
|
|
73
|
-
- run: npm ci
|
|
74
|
-
if: matrix.npm-i == '' && steps.npm-version.outputs.major > 5
|
|
75
|
-
|
|
76
|
-
- name: List dependencies
|
|
77
|
-
run: npm ls --depth=0 --dev && npm ls --depth=0 --prod
|
|
78
|
-
|
|
79
|
-
- run: npm run build --if-present
|
|
80
|
-
- run: npm test
|
|
81
|
-
- run: npm run test_files
|