From 6dc4a7a28ba9a3bf0de43d92d81d13d207b8520a Mon Sep 17 00:00:00 2001 From: toddtarsi Date: Sun, 28 Jan 2024 14:27:33 -0600 Subject: [PATCH] github token to publish --- .github/workflows/release-ide-binaries.yml | 35 ++-------------------- packages/selenium-ide/package.json | 6 ++-- 2 files changed, 6 insertions(+), 35 deletions(-) diff --git a/.github/workflows/release-ide-binaries.yml b/.github/workflows/release-ide-binaries.yml index 73541b093..75981369c 100644 --- a/.github/workflows/release-ide-binaries.yml +++ b/.github/workflows/release-ide-binaries.yml @@ -48,35 +48,6 @@ jobs: env: NODE_ENV: "production" - name: Build selenium-ide binaries - run: npm run build:electron:${{ matrix.platform }} - working-directory: ./packages/selenium-ide - - name: Set env from current release - run: > - echo "SIDE_RELEASE_VERSION=$(node -pe "require('./package.json').version")" >> $GITHUB_ENV - if: matrix.platform != 'windows' - working-directory: ./packages/selenium-ide - - name: Set env from current release on Windows - run: | - $version = node -pe "require('./package.json').version" - echo "SIDE_RELEASE_VERSION=$version" | Out-File -Append -Encoding utf8 $Env:GITHUB_ENV - shell: pwsh - if: matrix.platform == 'windows' - working-directory: ./packages/selenium-ide - - name: Check env is there - run: echo "${{ env.SIDE_RELEASE_VERSION }}" - - name: Release latest selenium-ide on github - uses: "marvinpinto/action-automatic-releases@latest" - with: - repo_token: "${{ secrets.GITHUB_TOKEN }}" - automatic_release_tag: "latest-${{ matrix.platform }}" - prerelease: true - title: "Nightly (Unstable)" - files: packages/selenium-ide/dist/Selenium* - - name: Release selenium-ide on github - uses: "marvinpinto/action-automatic-releases@latest" - with: - repo_token: "${{ secrets.GITHUB_TOKEN }}" - automatic_release_tag: "${{ env.SIDE_RELEASE_VERSION }}-${{ matrix.platform }}" - prerelease: false - files: packages/selenium-ide/dist/Selenium* - continue-on-error: true \ No newline at end of file + run: npm run publish:electron:${{ matrix.platform }} + env: + GH_TOKEN: ${{ secrets.GH_TOKEN }} \ No newline at end of file diff --git a/packages/selenium-ide/package.json b/packages/selenium-ide/package.json index 429935314..0b16e6e6e 100644 --- a/packages/selenium-ide/package.json +++ b/packages/selenium-ide/package.json @@ -11,12 +11,12 @@ "start": "electron build/main-bundle.js", "build": "run-s build:webpack build:electron", "build:electron": "CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder -mwl --publish never", - "build:electron:linux": "CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder -l --publish always", - "build:electron:mac": "CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder -m --publish always", - "build:electron:windows": "electron-builder -w --publish always", "build:electron:dir": "CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder --dir", "build:webpack": "webpack", "install-app-deps": "electron-builder install-app-deps", + "publish:electron:linux": "CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder -l --publish always", + "publish:electron:mac": "CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder -m --publish always", + "publish:electron:windows": "electron-builder -w --publish always", "release": "electron-builder", "watch": "webpack --watch" },