chore(deps-dev): bump vite from 6.0.1 to 6.0.2 #2017
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Artifact Upload | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- labeled | |
jobs: | |
artifact-upload: | |
if: contains(github.event.pull_request.labels.*.name, 'package') | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set version and SHA | |
run: | | |
VERSION=$(node -p "require('./package.json').version") | |
echo "VERSION=$VERSION" >> "$GITHUB_ENV" | |
SHA=$(git rev-parse --short ${{ github.event.pull_request.head.sha }}) | |
echo "SHA=$SHA" >> "$GITHUB_ENV" | |
echo $VERSION | |
echo $SHA | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.tool-versions' | |
cache: 'npm' | |
cache-dependency-path: ./package-lock.json | |
- name: Install dependencies in repo root | |
run: npm ci | |
working-directory: . | |
- name: Build packages | |
run: npm run package -- --simple | |
- name: Uncompress packages | |
run: | | |
for PLATFORM in firefox chromium; do | |
mkdir web-ext-artifacts/ghostery-$PLATFORM | |
unzip "web-ext-artifacts/ghostery-$PLATFORM.zip" -d "web-ext-artifacts/ghostery-$PLATFORM" | |
done | |
- name: Upload Chromium build | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ghostery-chromium-${{ env.VERSION }}-${{ env.SHA }} | |
path: web-ext-artifacts/ghostery-chromium/* | |
if-no-files-found: error | |
- name: Upload Firefox build | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ghostery-firefox-${{ env.VERSION }}-${{ env.SHA }} | |
path: web-ext-artifacts/ghostery-firefox/* | |
if-no-files-found: error |