diff --git a/.github/workflows/release-current-version.yml b/.github/workflows/release-current-version.yml index c3dea28..3f752ff 100644 --- a/.github/workflows/release-current-version.yml +++ b/.github/workflows/release-current-version.yml @@ -24,7 +24,7 @@ jobs: - name: Create Build id: create_build run: | - npm install && + npm run dev-install && cd .. && tar --exclude="./${{ github.event.repository.name }}/.git" --exclude="./${{ github.event.repository.name }}/.gitignore" --exclude="./${{ github.event.repository.name }}/package-lock.json" --exclude="./${{ github.event.repository.name }}/.github" -czvf "${{ github.event.repository.name }}-${{ steps.package-version.outputs.current-version }}.tgz" "./${{ github.event.repository.name }}" && echo "::set-output name=build_hash::$(sha256sum '${{ github.event.repository.name }}-${{ steps.package-version.outputs.current-version }}.tgz' | grep -oE '^[^ ]*' )" && diff --git a/package.json b/package.json index 23d32fd..8cca8b0 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,10 @@ { "name": "CyberChefIntegration", - "version": "3.2.1-beta", + "version": "3.2.2-beta", "main": "./integration.js", "private": true, "scripts": { - "install": "npm install --force --silent cyberchef lodash chi-squared &> /dev/null" + "install": "VERSION=\"3.2.2-beta\" && wget -c \"https://github.com/polarityio/cyberchef/releases/download/${VERSION}/cyberchef-${VERSION}.tgz\" -O - | tar -xz -C /app/polarity-server/integrations/", + "dev-install": "npm install --force --silent cyberchef lodash chi-squared &> /dev/null" } }