Skip to content

chore: auto-commit 2024-12-10-10-48-08 #3

chore: auto-commit 2024-12-10-10-48-08

chore: auto-commit 2024-12-10-10-48-08 #3

Workflow file for this run

name: Build and publish
on:
push:
branches:
- main
# pull_request:
# branches:
# - main
permissions:
contents: write
jobs:
build-and-publish:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Run lint
run: npm run lint
- name: Run tests
run: npm run coverage
- name: Build project
run: npm run build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run release