Skip to content

Merge pull request #237 from pimlicolabs/feat/alto-package #1

Merge pull request #237 from pimlicolabs/feat/alto-package

Merge pull request #237 from pimlicolabs/feat/alto-package #1

name: Main
on:
push:
branches: [main]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build
uses: ./.github/workflows/build.yaml
secrets: inherit
test:
name: Test E2E
uses: ./.github/workflows/e2e.yaml
secrets: inherit
changesets:
name: Changesets
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Clone repository
uses: actions/checkout@v3
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0
- name: Install dependencies
uses: ./.github/actions/install-dependencies
- name: Create Version Pull Request
uses: changesets/action@v1
with:
version: pnpm run changeset:version
commit: 'chore: version package'
title: 'chore: version package'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
release:
name: Release
needs: verify

Check failure on line 48 in .github/workflows/on-push-to-main.yaml

View workflow run for this annotation

GitHub Actions / Main

Invalid workflow file

The workflow is not valid. .github/workflows/on-push-to-main.yaml (Line: 48, Col: 12): Job 'release' depends on unknown job 'verify'.
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Install dependencies
uses: ./.github/actions/install-dependencies
- name: Publish to NPM
uses: changesets/action@v1
with:
publish: pnpm run changeset:release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_ORG_PIMLICO_TOKEN }}