Skip to content

chore(deps): update vitest monorepo to v2.1.5 (#402) #437

chore(deps): update vitest monorepo to v2.1.5 (#402)

chore(deps): update vitest monorepo to v2.1.5 (#402) #437

Workflow file for this run

name: Release
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
permissions:
id-token: write
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Create Github Token as Changesets-Bot
id: create_token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.CHANGESETS_RELEASE_APP_ID }}
private-key: ${{ secrets.CHANGESETS_RELEASE_PRIVATE_KEY }}
- name: Checkout Repo
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
token: ${{ steps.create_token.outputs.token }}
- name: Setup git user as Changesets Bot
# The bot id is taken from https://api.github.com/users/changesets-release-app[bot]
run: |
git config --global user.name "changesets-release-app[bot]"
git config --global user.email "152388490+changesets-release-app[bot]@users.noreply.github.com"
- name: Setup pnpm and node
uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "pnpm"
- name: Install Dependencies
run: pnpm install
- name: Build package
run: pnpm build
- name: Changesets Release
uses: changesets/action@v1
with:
commit: "chore(release): Release latest changesets"
title: "chore(release): Release latest changesets"
setupGitUser: false
createGithubReleases: true
publish: pnpm changeset publish
env:
GITHUB_TOKEN: ${{ steps.create_token.outputs.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}