Create thin-queens-rule.md #35
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: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- name: Set up git for pushing with PAT | |
env: | |
GH_PAT: ${{ secrets.GH_PAT_TRANSLOADIT_BOT_KICK_PRS }} | |
run: | | |
git remote set-url origin https://x-access-token:${GH_PAT}@github.com/${{ github.repository }} | |
git config --global user.name "transloadit-bot" | |
git config --global user.email "[email protected]" | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
registry-url: 'https://registry.npmjs.org' | |
- name: 🏗 Setup Caching | |
uses: actions/cache@v4 | |
with: | |
path: | | |
**/node_modules | |
.yarn/cache | |
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock', '**/package.json') }} | |
restore-keys: | | |
${{ runner.os }}- | |
# Allow yarn to make changes during release | |
- run: corepack yarn config set enableHardenedMode false | |
- run: corepack yarn --mode=update-lockfile | |
- name: Create Release Pull Request or Publish | |
id: changesets | |
uses: changesets/action@v1 | |
with: | |
version: corepack yarn changeset version && yarn | |
publish: corepack yarn release | |
title: "chore: version packages" | |
commit: "chore: version packages" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_PAT_TRANSLOADIT_BOT_KICK_PRS }} | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |