From 302260c8f05e77cffe3247ab3c1c91c0deba855f Mon Sep 17 00:00:00 2001 From: Manu Artero Anguita Date: Wed, 1 Nov 2023 13:33:39 +0100 Subject: [PATCH] chore: add GH_TOKEN for semantic-release (#2) --- .github/workflows/blue-ball.yaml | 6 ++---- .github/workflows/release.yaml | 9 +++++++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/blue-ball.yaml b/.github/workflows/blue-ball.yaml index f786acb..3b8ab87 100644 --- a/.github/workflows/blue-ball.yaml +++ b/.github/workflows/blue-ball.yaml @@ -2,19 +2,17 @@ name: Blue Ball on: pull_request: - branches: - - main + branches: [main] jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: actions/setup-node@v2 with: node-version: 18.17.1 - - run: npm ci --ignore-scripts - run: npm test - run: npm run build diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 984fcf6..5bdd2f8 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -7,12 +7,17 @@ on: jobs: release: runs-on: ubuntu-latest + permissions: + contents: write + issues: write + pull-requests: write steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: actions/setup-node@v2 with: node-version: 18.17.1 - - run: npm ci --ignore-scripts - run: npm run release + env: + GH_TOKEN: ${{ secrets.GH_TOKEN }}