Latest lockfile #503
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: 🦋 Changesets Release | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- ".github/workflows/release.yml" | |
- "packages/**" | |
- "!packages/**/*.md" | |
- ".changeset/**" | |
- "integrations/**" | |
- "!integrations/**/*.md" | |
- "pnpm-lock.yaml" | |
- "pnpm-workspace.yaml" | |
- "turbo.json" | |
jobs: | |
release: | |
name: 🦋 Changesets Release | |
runs-on: buildjet-4vcpu-ubuntu-2204 | |
if: | | |
github.repository == 'triggerdotdev/trigger.dev' | |
outputs: | |
published_packages: ${{ steps.changesets.outputs.publishedPackages }} | |
published: ${{ steps.changesets.outputs.published }} | |
steps: | |
- name: 🛑 Cancel Previous Runs | |
uses: styfle/[email protected] | |
- name: ⬇️ Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: ⎔ Setup pnpm | |
uses: pnpm/[email protected] | |
with: | |
version: 7.18 | |
- name: ⎔ Setup node | |
uses: buildjet/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: "pnpm" | |
- name: 📥 Download deps | |
run: pnpm install --frozen-lockfile | |
- name: 📀 Generate Prisma Client | |
run: pnpm run generate | |
- name: 🔎 Type check | |
run: pnpm run typecheck | |
- name: 🔐 Setup npm auth | |
run: | | |
echo "registry=https://registry.npmjs.org" >> ~/.npmrc | |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc | |
# This action has two responsibilities. The first time the workflow runs | |
# (initial push to the `main` branch) it will create a new branch and | |
# then open a PR with the related changes for the new version. After the | |
# PR is merged, the workflow will run again and this action will build + | |
# publish to npm. | |
- name: 🚀 PR / Publish | |
id: changesets | |
uses: changesets/action@v1 | |
with: | |
version: pnpm run changeset:version | |
commit: "chore: Update version for release" | |
title: "chore: Update version for release" | |
publish: pnpm run changeset:release | |
createGithubReleases: false | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |