Skip to content

Commit

Permalink
ci: update GITHUB_TOKEN permissions (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
lytovka committed Oct 16, 2023
1 parent 082acbd commit 1a8e086
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Pull Request
on: pull_request
jobs:
lint:
name: ESLint
name: ⚒️ ESLint
runs-on: ubuntu-latest
steps:
- name: Checkout repo
Expand All @@ -19,7 +19,7 @@ jobs:
run: npm run lint

prettier:
name: Prettier
name: 💅 Prettier
runs-on: ubuntu-latest
steps:
- name: Checkout repo
Expand All @@ -36,7 +36,7 @@ jobs:
run: npm run format:check

build:
name: Build
name: 🚧 Build
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,19 @@ on: workflow_dispatch

jobs:
release:
name: 📦 Release package
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-release
cancel-in-progress: true
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN_SEMANTIC_RELEASE }}
- name: Get Node.js version from .nvmrc
run: echo NVMRC=`cat .nvmrc` >> $GITHUB_ENV
- name: Setup Node.js
Expand Down

0 comments on commit 1a8e086

Please sign in to comment.