3030 with :
3131 node-version : 12
3232 registry-url : https://registry.npmjs.org/
33+ - id : get_version
34+ run : |
35+ RELEASE_VERSION=$(echo $GITHUB_REF | sed -nE 's!refs/tags/!!p')
36+ echo "::set-output name=release_version::$RELEASE_VERSION"
3337 - name : Cache node modules
3438 uses : actions/cache@v1
3539 with :
3943 ${{ runner.os }}-node-
4044 - name : Build UI
4145 env :
46+ VERSION : ${{ steps.get_version.outputs.release_version }}
4247 NPM_CONFIG_GLOBALCONFIG : " dist/npm/config/npmrc"
4348 NPM_REGISTRY_TOKEN : ${{ secrets.NPM_DEVSPACE_REGISTRY_TOKEN }}
4449 CI : " false"
5762 uses : actions/setup-go@v1
5863 with :
5964 go-version : 1.17
65+ - id : get_version
66+ run : |
67+ RELEASE_VERSION=$(echo $GITHUB_REF | sed -nE 's!refs/tags/!!p')
68+ echo "::set-output name=release_version::$RELEASE_VERSION"
6069 - name : install-go-bindata
6170 run : go get -u github.com/go-bindata/go-bindata/...
6271 env :
7079 - name : Compile binaries
7180 run : ./hack/build-all.bash
7281 env :
82+ VERSION : ${{ steps.get_version.outputs.release_version }}
7383 GOPATH : /Users/runner/work/devspace/go
7484 ENCRYPTION_KEY : ${{ secrets.ENCRYPTION_KEY }}
7585 ANALYTICS_TOKEN : ${{ secrets.ANALYTICS_TOKEN }}
@@ -90,12 +100,17 @@ jobs:
90100 with :
91101 node-version : 12
92102 registry-url : https://registry.npmjs.org/
103+ - id : get_version
104+ run : |
105+ RELEASE_VERSION=$(echo $GITHUB_REF | sed -nE 's!refs/tags/!!p')
106+ echo "::set-output name=release_version::$RELEASE_VERSION"
93107 - run : |
94108 npm ci
95- export NPM_TAG=$(node index.js get-tag)
109+ export NPM_TAG=$RELEASE_VERSION
96110 npm publish --tag $NPM_TAG
97111 working-directory: ./dist/npm
98112 env:
113+ RELEASE_VERSION: ${{ steps.get_version.outputs.release_version }}
99114 NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }}
100115 publish-next-image :
101116 if : github.ref == 'refs/heads/master'
0 commit comments