Skip to content

Commit

Permalink
works?
Browse files Browse the repository at this point in the history
  • Loading branch information
tianfeng92 committed Sep 6, 2023
1 parent 093a531 commit 87b0c5b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,12 @@ jobs:
release-macos-bundle:
runs-on: macos-latest
env:
OS: darwin
ARCH: x64
NODE_FILE_EXTENSION: tar.gz
EXTRACT_CMD: "tar xf"

needs: [create-release-draft]
steps:
- name: Find Matching Draft Tag
Expand Down Expand Up @@ -216,11 +222,6 @@ jobs:
- name: Bundle Directory
if: ${{ steps.prep.outputs.asset_id == '' }}
env:
OS: darwin
ARCH: x64
NODE_FILE_EXTENSION: tar.gz
EXTRACT_CMD: tar xf
run: bash ./scripts/bundle.sh

- name: List Bundle Contents
Expand Down
6 changes: 3 additions & 3 deletions scripts/bundle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ set -e
echo "Using: $(which node)"
export PLAYWRIGHT_BROWSERS_PATH=$PWD/bundle/Cache/
echo $PLAYWRIGHT_BROWSERS_PATH
NODE_VERSION=$(node --version)
NODE_BINARY="https://nodejs.org/dist/$NODE_VERSION/node-$NODE_VERSION-$OS-$ARCH.$NODE_FILE_EXTENSION"
NODE_BUNDLE="node-$NODE_VERSION-$OS-$ARCH"
export NODE_VERSION=$(node --version)
export NODE_BINARY="https://nodejs.org/dist/$NODE_VERSION/node-$NODE_VERSION-$OS-$ARCH.$NODE_FILE_EXTENSION"
export NODE_BUNDLE="node-$NODE_VERSION-$OS-$ARCH"

rm -rf ./bundle/
mkdir ./bundle/
Expand Down

0 comments on commit 87b0c5b

Please sign in to comment.