Skip to content

Bump actions/checkout from 4.1.4 to 4.1.6 (#84) #176

Bump actions/checkout from 4.1.4 to 4.1.6 (#84)

Bump actions/checkout from 4.1.4 to 4.1.6 (#84) #176

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
permissions: {} # disable all
jobs:
build:
name: Build+Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.6
- name: Setup Node.js environment
uses: actions/setup-node@v4.0.2
with:
node-version-file: package.json
cache: npm
cache-dependency-path: package-lock.json
- name: NPM install
run: npm ci
- name: Check format
run: npm run format:check
- name: Build
run: npm pack
- name: Upload files
uses: actions/upload-artifact@v4.3.3
with:
name: npm-package
path: "*.tgz"
retention-days: ${{ (github.ref == 'refs/heads/main') && 90 || 1 }} # 90 days on main branch, 1 for PRs