@qr-platform/qr-code.js 0.8.19 → 0.8.20

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.
@@ -19,20 +19,25 @@ jobs:
19
19
  node-version: '22'
20
20
  registry-url: 'https://registry.npmjs.org'
21
21
 
22
- - name: Check if version exists
22
+ # --- Check if version already exists ---
23
+ - name: Check if version exists on npm
23
24
  id: check_version
24
25
  run: |
26
+ PACKAGE_NAME=$(node -p "require('./package.json').name")
25
27
  VERSION=$(node -p "require('./package.json').version")
26
- if npm view ${GITHUB_REPOSITORY#*/}@${VERSION} version >/dev/null 2>&1; then
27
- echo "Version ${VERSION} already exists on npm, skipping publish."
28
+ echo "Checking if package '${PACKAGE_NAME}@${VERSION}' exists on npm..."
29
+ if npm view "${PACKAGE_NAME}@${VERSION}" version > /dev/null 2>&1; then
30
+ echo "Version ${VERSION} of ${PACKAGE_NAME} already exists on npm. Skipping publish."
28
31
  echo "skip_publish=true" >> $GITHUB_OUTPUT
29
32
  else
30
- echo "Version ${VERSION} does not exist, proceeding with publish."
33
+ echo "Version ${VERSION} of ${PACKAGE_NAME} does not exist on npm. Proceeding with publish."
31
34
  echo "skip_publish=false" >> $GITHUB_OUTPUT
32
35
  fi
33
36
 
37
+ # --- Publish Step ---
34
38
  - name: Publish to npm
39
+ # Only run this step if check_version determined skip_publish is 'false'
35
40
  if: steps.check_version.outputs.skip_publish == 'false'
36
- run: npm publish --access public
41
+ run: npm publish
37
42
  env:
38
43
  NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @qr-platform/qr-code-js
2
2
 
3
+ ## 0.8.20
4
+
5
+ ### Patch Changes
6
+
7
+ - 90fd9b4: Update to license manager domain check array
8
+
3
9
  ## 0.8.19
4
10
 
5
11
  ### Patch Changes