Skip to content
This repository has been archived by the owner on Oct 22, 2023. It is now read-only.

Lock file maintenance #1416

Lock file maintenance

Lock file maintenance #1416

Workflow file for this run

name: CI
on:
push:
branches: "*"
tags-ignore: "v*"
pull_request:
env:
TERM: xterm-256color
jobs:
build:
name: Build
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v4.1.0
- name: Set up Node.js
uses: actions/setup-node@v3.8.1
with:
node-version-file: .nvmrc
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Check formatting
run: yarn check-format
- name: Lint
run: yarn lint
- name: Build
run: yarn build
- name: Run tests
run: yarn test
- name: Upload built files
uses: actions/upload-artifact@v3.1.3
with:
name: dist
path: dist
if-no-files-found: error
release:
name: Release
runs-on: ubuntu-22.04
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/release/') && github.repository == 'batect/batect-wrapper-validation-action'
needs:
- build
permissions:
contents: write
steps:
- name: Check out code
uses: actions/checkout@v4.1.0
- name: Download built files
uses: actions/download-artifact@v3.0.2
with:
name: dist
path: dist
- name: Extract version
id: extract_version
run: echo "::set-output name=version::$(echo '${{ github.ref }}' | sed 's#refs/tags/release/##')"
- name: Publish
uses: JasonEtco/build-and-tag-action@v2.0.1
with:
tag_name: ${{ steps.extract_version.outputs.version }}
env:
GITHUB_TOKEN: ${{ github.token }}