Skip to content

chore(license): keep initial release year only #14

chore(license): keep initial release year only

chore(license): keep initial release year only #14

Workflow file for this run

name: CI/CD
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
build-lint-test-release:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: pnpm
- run: pnpm install
- run: pnpm run lint
- run: pnpm run --if-present test
- name: Create Release Pull Request or Publish to npm
if: ${{ github.ref == 'refs/heads/main' }}
uses: changesets/action@v1
with:
publish: pnpm exec changeset publish
commit: "chore: release"
title: "chore: release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}