@7365admin1/module-hygiene 4.26.0 → 4.26.1-staging.2
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.
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
name: Publish Staging
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches:
|
|
5
|
+
- staging
|
|
6
|
+
|
|
7
|
+
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
publish:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
steps:
|
|
13
|
+
- uses: actions/checkout@v4
|
|
14
|
+
|
|
15
|
+
- uses: actions/setup-node@v4
|
|
16
|
+
with:
|
|
17
|
+
node-version: 20.x
|
|
18
|
+
cache: "yarn"
|
|
19
|
+
cache-dependency-path: yarn.lock
|
|
20
|
+
|
|
21
|
+
- run: yarn install --immutable
|
|
22
|
+
|
|
23
|
+
- run: yarn build
|
|
24
|
+
|
|
25
|
+
- name: Create .npmrc for publishing
|
|
26
|
+
run: |
|
|
27
|
+
echo '//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}' > ~/.npmrc
|
|
28
|
+
|
|
29
|
+
- name: Set staging prerelease version
|
|
30
|
+
run: |
|
|
31
|
+
BASE=$(node -p "const [x,y,z]=require('./package.json').version.split('-')[0].split('.'); [x,y,+z+1].join('.')")
|
|
32
|
+
npm version "$BASE-staging.${{ github.run_number }}" --no-git-tag-version
|
|
33
|
+
node -p "'Publishing ' + require('./package.json').version"
|
|
34
|
+
|
|
35
|
+
- name: Publish to npm with staging tag
|
|
36
|
+
run: npm publish --tag staging --registry https://registry.npmjs.org
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@7365admin1/module-hygiene",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "4.26.
|
|
4
|
+
"version": "4.26.1-staging.2",
|
|
5
5
|
"author": "7365admin1",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.mjs",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@7365admin1/core": "^3.24.0",
|
|
30
|
-
"@7365admin1/node-server-utils": "^1.
|
|
30
|
+
"@7365admin1/node-server-utils": "^1.6.0",
|
|
31
31
|
"@types/qrcode": "^1.5.6",
|
|
32
32
|
"@types/urllib": "^2.33.0",
|
|
33
33
|
"cors": "^2.8.5",
|