Skip to content

ci: add PAT token to repo scope #12

ci: add PAT token to repo scope

ci: add PAT token to repo scope #12

name: build-and-release
on:
push:
branches:
- develop
- main
jobs:
build-and-release:
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
pull-requests: write # to be able to comment on released pull requests
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: npm
- name: Install Dependencies
run: npm ci
- name: Build Project
run: npm run build
- name: Semantic Release
env:
GITHUB_TOKEN: ${{ repository.PAT }}

Check failure on line 31 in .github/workflows/build-and-release.yml

View workflow run for this annotation

GitHub Actions / build-and-release

Invalid workflow file

The workflow is not valid. .github/workflows/build-and-release.yml (Line: 31, Col: 25): Unrecognized named-value: 'repository'. Located at position 1 within expression: repository.PAT

Check failure on line 31 in .github/workflows/build-and-release.yml

View workflow run for this annotation

GitHub Actions / build-and-release

Invalid workflow file

The workflow is not valid. .github/workflows/build-and-release.yml (Line: 31, Col: 25): Unrecognized named-value: 'repository'. Located at position 1 within expression: repository.PAT
BRANCH_NAME: ${{ github.ref_name }}
run: npx semantic-release