Upd GH Token permissions in CD #6
Workflow file for this run
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: CD | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
workflow_dispatch: | |
permissions: | |
contents: write | |
packages: read | |
jobs: | |
linux: | |
name: Linux | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install Deps | |
run: yarn install | |
- name: Compile | |
run: yarn run prod | |
- name: Package App and Draft New Release | |
run: yarn run package-draft | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
windows: | |
name: Windows | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install Deps | |
run: yarn install | |
- name: Compile | |
run: yarn run prod | |
- name: Package App and Draft New Release | |
run: yarn run package-draft | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
darwin: | |
name: macOS | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install Deps | |
run: yarn install | |
- name: Compile | |
run: yarn run prod | |
- name: Package App and Draft New Release | |
run: yarn run package-draft | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |