Skip to content

Commit

Permalink
ci: github token permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
emiliosheinz committed May 15, 2024
1 parent d45b4a4 commit ae2a701
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: 🧱 GitHub Release

on:
push:
branches:
- main

jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
metadata: read
steps:
- name: Check out code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "yarn"

- name: Install dependencies
run: yarn

- name: Generate Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: yarn semantic-release

0 comments on commit ae2a701

Please sign in to comment.