sqlmath 0.0.2 → 0.0.4

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.
@@ -36,20 +36,21 @@ jobs:
36
36
  packages: write
37
37
  steps:
38
38
 
39
- #!! # Setup .npmrc file to publish to GitHub Packages
40
- #!! - run: rm -f /home/runner/work/_temp/.npmrc
41
- #!! - uses: actions/checkout@v2
42
- #!! - uses: actions/setup-node@v2
43
- #!! with:
44
- #!! node-version: ${{ matrix.node_version }}
45
- #!! architecture: ${{ matrix.architecture }}
46
- #!! registry-url: 'https://npm.pkg.github.com'
47
- #!! # Defaults to the user or organization that owns the workflow file
48
- #!! # scope: '@octocat'
49
- #!! # Publish to GitHub Packages
50
- #!! - run: sh jslint_ci.sh shCiNpmPublishCustom
51
- #!! env:
52
- #!! NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39
+ # Setup .npmrc file to publish to GitHub Packages
40
+ - run: rm -f /home/runner/work/_temp/.npmrc
41
+ - uses: actions/checkout@v2
42
+ - uses: actions/setup-node@v2
43
+ with:
44
+ node-version: ${{ matrix.node_version }}
45
+ architecture: ${{ matrix.architecture }}
46
+ registry-url: 'https://npm.pkg.github.com'
47
+ # Defaults to the user or organization that owns the workflow file
48
+ # scope: '@octocat'
49
+ # Publish to GitHub Packages
50
+ - run: sh jslint_ci.sh shCiNpmPublish
51
+ env:
52
+ NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53
+ NPM_REGISTRY: github
53
54
 
54
55
  # Setup .npmrc file to publish to npm
55
56
  - run: rm -f /home/runner/work/_temp/.npmrc
@@ -60,7 +61,7 @@ jobs:
60
61
  architecture: ${{ matrix.architecture }}
61
62
  registry-url: 'https://registry.npmjs.org'
62
63
  # Publish to npm
63
- - run: sh jslint_ci.sh shCiNpmPublishCustom
64
+ - run: sh jslint_ci.sh shCiNpmPublish
64
65
  env:
65
66
  NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
66
67
  # npm publish - end
package/jslint_ci.sh CHANGED
@@ -438,10 +438,23 @@ shCiBranchPromote() {(set -e
438
438
  git push "$REMOTE" "$REMOTE/$BRANCH1:$BRANCH2" "$@"
439
439
  )}
440
440
 
441
+ shCiNpmPublish() {(set -e
442
+ # this function will npm-publish package
443
+ # init package.json for npm-publish
444
+ npm install
445
+ # update package-name
446
+ if [ "$NPM_REGISTRY" = github ]
447
+ then
448
+ sed -i \
449
+ "s|^ \"name\":.*| \"name\": \"@$GITHUB_REPOSITORY\",|" \
450
+ package.json
451
+ fi
452
+ shCiNpmPublishCustom
453
+ )}
454
+
441
455
  shCiNpmPublishCustom() {(set -e
442
456
  # this function will run custom-code to npm-publish package
443
- npm install
444
- npm publish --access public
457
+ # npm publish --access public
445
458
  )}
446
459
 
447
460
  shDirHttplinkValidate() {(set -e
package/package.json CHANGED
@@ -37,5 +37,5 @@
37
37
  "test2": "sh jslint_ci.sh shCiBase",
38
38
  "test_win32": "node -e \"require('child_process').spawn('C:\\\\Program Files\\\\Git\\\\bin\\\\bash.exe',['-c','npm run test' + ' ' + process.argv.slice(1).join(' ')],{stdio:['ignore',1,2]});\""
39
39
  },
40
- "version": "0.0.2"
40
+ "version": "0.0.4"
41
41
  }