chore(deps): update all non-major dependencies (#125) #215
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: Release | |
on: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
release: | |
name: Changelog PR or Release | |
if: ${{ github.repository == 'luxass/lesetid' }} | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
id-token: write | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- name: setup pnpm | |
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 | |
- name: setup node | |
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0 | |
with: | |
node-version: lts/* | |
- name: install | |
run: pnpm install --frozen-lockfile | |
- name: check packages for common errors | |
run: pnpm turbo --filter "./packages/*" build lint test typecheck | |
- name: create release | |
id: changeset | |
uses: changesets/action@c8bada60c408975afd1a20b3db81d6eee6789308 # v1.4.9 | |
with: | |
commit: "chore(release): π¦ version packages" | |
title: "chore(release): π¦ version packages" | |
publish: npx changeset publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
NPM_CONFIG_PROVENANCE: true | |
- name: sync lockfile if necessary | |
if: steps.changeset.outputs.hasChangesets == 'true' | |
run: | | |
git checkout changeset-release/main | |
pnpm install --no-frozen-lockfile | |
# Check for changes and only commit if there are any | |
if git diff --exit-code; then | |
echo "No changes to commit." | |
else | |
git add . | |
git commit -m "chore(release): π¦ sync lockfile" | |
git push origin changeset-release/main | |
fi |