build(deps-dev): bump @vercel/ncc from 0.38.1 to 0.38.2 #1070
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: | |
pull_request: | |
types: [opened, synchronize, reopened, closed] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js 20.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
- name: Check formatting | |
run: npm run format-check | |
- name: Build | |
run: npm run build --if-present | |
- name: Package artifacts | |
run: npm run package | |
- name: Run Tests | |
run: npm run test-verbose | |
env: | |
CI: true | |
- name: Prepare post-merge steps | |
if: > | |
github.event.action == 'closed' && | |
github.event.pull_request.merged | |
run: git checkout ${{ github.event.pull_request.base.ref }} | |
- name: Publish artifacts | |
if: > | |
github.event.action == 'closed' && | |
github.event.pull_request.merged | |
uses: EndBug/add-and-commit@v9 | |
with: | |
commit: --signoff | |
default_author: user_info | |
fetch: false | |
message: 'dist: build new artifacts' | |
push: true | |
- name: Create and move next-preview tag | |
if: > | |
github.event.action == 'closed' && | |
github.event.pull_request.merged && ( | |
github.event.pull_request.base.ref == 'main' || | |
startsWith(github.event.pull_request.base.ref, 'release') | |
) | |
run: | | |
git tag v3.next-preview --force | |
git push origin v3.next-preview --force |