build(deps-dev): bump prettier from 3.0.0 to 3.0.1 #895
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@v3 | |
- name: Use Node.js 16.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.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 v1.next-preview --force | |
git push origin v1.next-preview --force |