This repository has been archived by the owner on Oct 22, 2023. It is now read-only.
Update dependency @vercel/ncc to v0.38.1 #1430
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/[email protected] | |
- name: Set up Node.js | |
uses: actions/[email protected] | |
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/[email protected] | |
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/[email protected] | |
- name: Download built files | |
uses: actions/[email protected] | |
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/[email protected] | |
with: | |
tag_name: ${{ steps.extract_version.outputs.version }} | |
env: | |
GITHUB_TOKEN: ${{ github.token }} |