Skip to content

Merge pull request #7 from deresegetachew/chores/ci-util #26

Merge pull request #7 from deresegetachew/chores/ci-util

Merge pull request #7 from deresegetachew/chores/ci-util #26

Workflow file for this run

name: main
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-node-pnpm
with:
node-version: ${{ matrix.node-version }}
- uses: ./.github/actions/build-lint-test
publish:
needs: build
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
pull-requests: write
strategy:
matrix:
node-version: [22]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-node-pnpm
with:
node-version: ${{ matrix.node-version }}
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: dist-packages
path: .
- name: Create Release Pull Request or Publish
id: changesets
uses: changesets/action@v1
with:
publish: 'pnpm run release'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}