Skip to content

chore(deps-dev): bump addons-linter from 7.6.0 to 7.7.0 #2103

chore(deps-dev): bump addons-linter from 7.6.0 to 7.7.0

chore(deps-dev): bump addons-linter from 7.6.0 to 7.7.0 #2103

Workflow file for this run

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