Skip to content

chore(deps): update devdependency eslint-plugin-unicorn to v78 #256

chore(deps): update devdependency eslint-plugin-unicorn to v78

chore(deps): update devdependency eslint-plugin-unicorn to v78 #256

Workflow file for this run

name: release

Check warning on line 1 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / release

Workflow execution policy warning (evaluate mode)

On November 2, 2026, GitHub will restrict `pull_request_target` on public repositories by default. To continue allowing the event trigger, configure an Actions policy. Learn more: https://gh.io/securely-using-pull_request_target#default-policy-for-pull_request_target
on:
pull_request_target:
types: [closed]
branches:
- main
# Remove default permissions of GITHUB_TOKEN for security
# https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
permissions: {}
jobs:
release:
if: github.repository == 'nuxt/bridge' && github.event.pull_request.merged == true && (startsWith(github.event.pull_request.head.ref, 'v3.') || startsWith(github.event.pull_request.head.ref, 'v4.'))
concurrency:
group: release
permissions:
contents: write
id-token: write
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
fetch-depth: 0
- run: corepack enable
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: current
registry-url: "https://registry.npmjs.org/"
cache: "pnpm"
- name: 📦 Install dependencies
run: pnpm install
- name: 🛠 Build and release project
run: ./scripts/release.sh
env:
TAG: latest
- name: 🏷️ Create tag
env:
TAG_NAME: ${{ github.event.pull_request.head.ref }}
run: |
git tag "$TAG_NAME"
git push origin "$TAG_NAME"
- name: 🛳️ Create GitHub release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: ${{ github.event.pull_request.head.ref }}
RELEASE_NAME: ${{ github.event.pull_request.head.ref }}
BODY: ${{ github.event.pull_request.body }}
run: gh release create "$TAG_NAME" --title "$RELEASE_NAME" --notes "$BODY"