Skip to content

fix(prepare progressive images): adjustments following webp param dep… #26

fix(prepare progressive images): adjustments following webp param dep…

fix(prepare progressive images): adjustments following webp param dep… #26

# This is a basic workflow to help you get started with Actions
name: Version Release
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
push:
branches: [ "master" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
run-linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm ci
- run: npm run lint
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Run tests
run: |
npm ci
npm run test
- name: Archive coverage report
uses: actions/upload-artifact@v3
with:
name: coverage
path: ./coverage
build-release:
needs: tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Build JS and dist versions
run: |
npm ci
npm run build:javascript-version
npm run build:production-runtime
- name: Archive build artifacts
uses: actions/upload-artifact@v3
with:
name: build
path: ./build
- name: Archive dist artifacts
uses: actions/upload-artifact@v3
with:
name: dist
path: ./dist
publish-coverage:
needs: tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download artifacts
uses: actions/download-artifact@v3
- name: Upload to Codecov
uses: codecov/codecov-action@v3
semantic-release:
needs: build-release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm ci
- name: Download artifacts
uses: actions/download-artifact@v3
- run: npm run semantic-release
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
NPM_TOKEN: ${{secrets.npm_token}}
GH_TOKEN: ${{secrets.gh_token}}