From 1042864af312b28b920e27621400eb1a0e959ad2 Mon Sep 17 00:00:00 2001 From: pornchait Date: Wed, 8 Nov 2023 11:15:04 +0700 Subject: [PATCH 1/2] fix(ci): add permission to semantic release push tag --- .github/workflows/release.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3045f1b..9a8bd1b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,6 +27,11 @@ jobs: release: name: Semantic Release runs-on: ubuntu-latest + permissions: + contents: write + issues: write + pull-requests: write + steps: - name: Checkout uses: actions/checkout@v3 From 4657e72bffa2f8d1646e8a158d14012a89486024 Mon Sep 17 00:00:00 2001 From: pornchait Date: Wed, 8 Nov 2023 11:44:55 +0700 Subject: [PATCH 2/2] fix(ci): edit node version before semantic release process --- .github/workflows/release.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9a8bd1b..9837c9d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,11 +27,6 @@ jobs: release: name: Semantic Release runs-on: ubuntu-latest - permissions: - contents: write - issues: write - pull-requests: write - steps: - name: Checkout uses: actions/checkout@v3 @@ -40,14 +35,14 @@ jobs: - name: Install dependencies for release uses: actions/setup-node@v3 with: - node-version: 18 + node-version: ${{ matrix.node-version }} cache: 'yarn' - name: Install dependencies run: yarn - name: Semantic Release uses: cycjimmy/semantic-release-action@v3 with: - semantic_version: 19 + semantic_version: 22 branches: | [ '+([0-9])?(.{+([0-9]),x}).x',