Skip to content

ci: add missing env var #4

ci: add missing env var

ci: add missing env var #4

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:
name: Build, lint, test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/bootstrap
- run: pnpm run build
- run: pnpm run lint
- run: pnpm run --if-present test
release-latest:
name: Release latest version
needs: [build-lint-test]
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/bootstrap
with:
npm-token: ${{ secrets.NPM_TOKEN }}
- run: pnpm run build
- name: Create release PR or publish to npm
uses: changesets/action@v1
with:
publish: pnpm exec changeset publish
commit: "chore: release"
title: "chore: release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}