Skip to content

Refactor release.yml to include write permissions for contents #38

Refactor release.yml to include write permissions for contents

Refactor release.yml to include write permissions for contents #38

Workflow file for this run

name: Release for Figma
on:
push:
branches:
- ui-color-palette-*
tags:
- '*'
pull_request:
types:
- opened
- synchronize
- closed
jobs:
create-release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create release
id: create_release
uses: actions/create-release@v1
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
## What's Changed
[Friendly release note](https://ui-color-palette.canny.io/changelog/${{ github.ref_name }})・[Full Changelog](https://github.com/inVoltag/figma-ui-color-palette/commits/${{ github.ref_name }})