Skip to content

chore(deps): update node.js to v22.13.0 (#500) #2381

chore(deps): update node.js to v22.13.0 (#500)

chore(deps): update node.js to v22.13.0 (#500) #2381

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
- master
env:
CI: true
jobs:
lint_js:
name: Lint JS
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/pnpm
- name: ESLint
run: pnpm run lint:js
typecheck:
name: Type Checking
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/pnpm
- run: pnpm build:theme-data
- run: pnpm tsc --noEmit
working-directory: tests
tests:
name: Tests
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/pnpm
- run: pnpm test
publish:
name: Release
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
needs: [tests]
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: ./.github/actions/pnpm
- run: pnpm build
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: pnpm release
title: "Release Preview"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}