@adobe/aio-lib-sandbox 0.1.0-alpha.10 → 0.1.0-alpha.11

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.
@@ -27,12 +27,16 @@ jobs:
27
27
  # Keep the legacy `alpha` dist-tag moving in step with `latest` so that
28
28
  # anyone still installing with `@alpha` keeps getting current releases.
29
29
  - name: Sync the alpha dist-tag to the published version
30
- if: steps.publish.outputs.type != ''
31
30
  env:
32
31
  NODE_AUTH_TOKEN: ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
33
- PKG_ID: ${{ steps.publish.outputs.id }}
34
32
  run: |
35
33
  echo "//registry.npmjs.org/:_authToken=\${NODE_AUTH_TOKEN}" > ~/.npmrc
36
34
  trap 'rm -f ~/.npmrc' EXIT
37
- npm dist-tag add "${PKG_ID}" alpha
35
+ PKG_NAME="$(node -p "require('./package.json').name || ''")"
36
+ PKG_VERSION="$(node -p "require('./package.json').version || ''")"
37
+ if [ -z "${PKG_NAME}" ] || [ -z "${PKG_VERSION}" ]; then
38
+ echo "could not derive name and version from package.json" >&2
39
+ exit 1
40
+ fi
41
+ npm dist-tag add "${PKG_NAME}@${PKG_VERSION}" alpha
38
42
  npm dist-tag ls @adobe/aio-lib-sandbox
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/aio-lib-sandbox",
3
- "version": "0.1.0-alpha.10",
3
+ "version": "0.1.0-alpha.11",
4
4
  "description": "JavaScript SDK for Adobe Runtime Sandboxes",
5
5
  "main": "src/index.js",
6
6
  "license": "Apache-2.0",