Skip to content

Commit

Permalink
package-lock.json
Browse files Browse the repository at this point in the history
  • Loading branch information
biplobsd committed Jan 13, 2025
1 parent 01f14bb commit 4b8ea65
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,26 +33,23 @@ jobs:
- name: Build for ${{ matrix.browser_name }}
env:
VITE_BROWSER_NAME: ${{ matrix.browser_name }}
VITE_API_KEY: ${{ secrets.VITE_API_KEY }}
run: npm run build

# Step 5: Package the build
# Step 5: Package the build and set output
- name: Package Build
id: package
run: |
VERSION=$(node -p "require('./package.json').version")
OUTPUT_NAME="yst_v${VERSION}_${{ matrix.browser_name }}.zip"
echo "output_name=${OUTPUT_NAME}" >> $GITHUB_ENV
cd dist
zip -r "../${OUTPUT_NAME}" .
shell: bash

# Step 6: Upload artifacts with dynamic names
- name: Upload Artifact
run: |
VERSION=$(node -p "require('./package.json').version")
OUTPUT_NAME="yst_v${VERSION}_${{ matrix.browser_name }}.zip"
shell: bash

# Step 6: Upload artifacts
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: ${{ steps.package.outputs.OUTPUT_NAME }}
path: ./*.zip
name: ${{ env.output_name }}
path: yst_v*.zip

0 comments on commit 4b8ea65

Please sign in to comment.