Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/npm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
registry-url: https://registry.npmjs.org/
- run: |
npm install -g
export RELEASE_VERSION=$(node index.js get-latest)
npm run prepare
devspace --version
npm uninstall -g devspace
Expand All @@ -41,6 +42,8 @@ jobs:
registry-url: https://registry.npmjs.org/
- run: |
npm install -g
$releaseVersion = node index.js get-latest
$env:RELEASE_VERSION = $releaseVersion
npm run prepare
devspace --version
npm uninstall -g devspace
Expand Down
17 changes: 16 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ jobs:
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- id: get_version
run: |
RELEASE_VERSION=$(echo $GITHUB_REF | sed -nE 's!refs/tags/!!p')
echo "::set-output name=release_version::$RELEASE_VERSION"
- name: Cache node modules
uses: actions/cache@v1
with:
Expand All @@ -39,6 +43,7 @@ jobs:
${{ runner.os }}-node-
- name: Build UI
env:
VERSION: ${{ steps.get_version.outputs.release_version }}
NPM_CONFIG_GLOBALCONFIG: "dist/npm/config/npmrc"
NPM_REGISTRY_TOKEN: ${{ secrets.NPM_DEVSPACE_REGISTRY_TOKEN }}
CI: "false"
Expand All @@ -57,6 +62,10 @@ jobs:
uses: actions/setup-go@v1
with:
go-version: 1.17
- id: get_version
run: |
RELEASE_VERSION=$(echo $GITHUB_REF | sed -nE 's!refs/tags/!!p')
echo "::set-output name=release_version::$RELEASE_VERSION"
- name: install-go-bindata
run: go get -u github.com/go-bindata/go-bindata/...
env:
Expand All @@ -72,6 +81,7 @@ jobs:
- name: Compile binaries
run: ./hack/build-all.bash
env:
VERSION: ${{ steps.get_version.outputs.release_version }}
GOPATH: /Users/runner/work/devspace/go
ENCRYPTION_KEY: ${{ secrets.ENCRYPTION_KEY }}
ANALYTICS_TOKEN: ${{ secrets.ANALYTICS_TOKEN }}
Expand All @@ -92,12 +102,17 @@ jobs:
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- id: get_version
run: |
RELEASE_VERSION=$(echo $GITHUB_REF | sed -nE 's!refs/tags/!!p')
echo "::set-output name=release_version::$RELEASE_VERSION"
- run: |
npm ci
export NPM_TAG=$(node index.js get-tag)
npm publish --tag $NPM_TAG
working-directory: ./dist/npm
env:
RELEASE_VERSION: ${{ steps.get_version.outputs.release_version }}
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }}
publish-next-image:
if: github.ref == 'refs/heads/master'
Expand Down Expand Up @@ -133,4 +148,4 @@ jobs:
repository: devspacesh/devspace
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
build_args: RELEASE_VERSION=${{ steps.get_version.outputs.release_version }}
build_args: RELEASE_VERSION=${{ steps.get_version.outputs.release_version }}
3 changes: 3 additions & 0 deletions dist/npm/bin/devspace
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ if [ ! -f "$BINARY" ] || [ "$STAT" -lt 10000 ]; then

echo "Running: node $BASEDIR/$INDEX_FILE finish-install $BINDIR"
/usr/bin/env node "$BASEDIR/$INDEX_FILE" finish-install $BINDIR;
if [ $? -ne 0 ]; then
exit 1
fi

CMD_BIN=$(command -v cmd.exe)

Expand Down
Loading