File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -147,11 +147,12 @@ jobs:
147147 --clobber
148148
149149 - name : Publish to npm (--dry-run)
150- if : env.TEST_MODE ! = 'true'
150+ if : env.TEST_MODE = = 'true'
151151 env :
152152 NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
153153 run : |
154154 set -euo pipefail
155+ PKG_VERSION=$(node -p "require('./package.json').version")
155156
156157 if [[ "${PKG_VERSION}" == *"-alpha."* ]]; then
157158 npm publish --access public --tag alpha --dry-run
@@ -169,6 +170,8 @@ jobs:
169170 NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
170171 run : |
171172 set -euo pipefail
173+ PKG_VERSION=$(node -p "require('./package.json').version")
174+
172175 if [[ "${PKG_VERSION}" == *"-alpha."* ]]; then
173176 npm publish --access public --tag alpha
174177 elif [[ "${PKG_VERSION}" == *"-beta."* ]]; then
You can’t perform that action at this time.
0 commit comments