This repository has been archived by the owner on Oct 22, 2023. It is now read-only.
Update dependency node to v18.18.2 #1413
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: 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 }} |