Skip to content

Commit 589e2fc

Browse files
committed
Removes ${} interpolation
Replaces package -v with -
1 parent c223e10 commit 589e2fc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/cd-stable.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
name: Publish Stable
2+
13
on:
24
push:
35
tags:
46
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
57

6-
name: Publish Stable
7-
88
jobs:
99
build:
1010
name: Publish Stable
@@ -17,9 +17,9 @@ jobs:
1717
with:
1818
node-version: '12.x'
1919
- name: Setup Environment
20-
run: node -e "console.log(`PACKAGE_VERSION=${require('./package.json').version}\nPACKAGE_NAME=${require('./package.json').name}-v${require('./package.json').version}`)" >> $GITHUB_ENV
20+
run: node -e "console.log('PACKAGE_VERSION=' + require('./package.json').version + '\nPACKAGE_NAME=' + require('./package.json').name + '-' + require('./package.json').version)" >> $GITHUB_ENV
2121
- name: Verify versions
22-
run: node -e "if ('refs/tags/v' + ${{ env.PACKAGE_VERSION }} !== '${{ github.ref }}') { console.log('::error' + 'Version Mismatch. refs/tags/v' + ${{ env.PACKAGE_VERSION }}, '${{ github.ref }}'); throw Error('Version Mismatch')} "
22+
run: node -e "if ('refs/tags/v' + '${{ env.PACKAGE_VERSION }}' !== '${{ github.ref }}') { console.log('::error' + 'Version Mismatch. refs/tags/v' + '${{ env.PACKAGE_VERSION }}', '${{ github.ref }}'); throw Error('Version Mismatch')} "
2323
- name: Install
2424
run: yarn
2525
- name: Package extension

0 commit comments

Comments
 (0)