Skip to content

chore(deps): bump actions/download-artifact in /.github/workflows #122

chore(deps): bump actions/download-artifact in /.github/workflows

chore(deps): bump actions/download-artifact in /.github/workflows #122

Workflow file for this run

name: CI
env:
DEBIAN_FRONTEND: noninteractive
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- run: sudo apt-get update && sudo apt-get install -y unzip zip
- uses: actions/setup-node@v2
with:
node-version: '16'
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci
- name: Run development build
run: npm run build
- run: zip -q -r node_modules.zip node_modules
- uses: actions/upload-artifact@v2
with:
name: node_modules.zip
path: node_modules.zip
version:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: build
steps:
- run: sudo apt-get update && sudo apt-get install -y unzip zip
- uses: actions/setup-node@v2
with:
node-version: '16'
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/download-artifact@v4.1.7
with:
name: node_modules.zip
path: .
- run: unzip -qq node_modules.zip
- run: npm ci
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run semantic-release -- --ci