Merge pull request #3 from shba007/changeset-release/develop #6
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: Nitro CI | |
on: | |
push: | |
branches: | |
- develop | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Corepack for pnpm | |
run: corepack enable | |
- name: Setup Node.js with Corepack | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
cache: 'pnpm' | |
- name: Install Dependencies | |
run: pnpm install | |
- name: Build Artifacts | |
run: pnpm build | |
# - name: Run Tests | |
# run: pnpm test | |
- name: Lint Code | |
run: pnpm lint || echo "Linting failed, but continuing" | |
- name: Format Code | |
run: pnpm format | |
- name: Create Release Pull Request | |
uses: changesets/action@v1 | |
with: | |
title: 'chore(release): update version' | |
commit: 'chore(release): update version' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |