From 7640ed9767f939b1f8008434952090b61e454077 Mon Sep 17 00:00:00 2001 From: Robson Oliveira dos Santos Date: Mon, 18 Dec 2023 19:18:28 -0300 Subject: [PATCH] ci: update action scripts --- .github/workflows/cd.yaml | 16 ++++++++-------- .github/workflows/ci.yaml | 14 +++++++------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index 98d5a4f..1065202 100644 --- a/.github/workflows/cd.yaml +++ b/.github/workflows/cd.yaml @@ -11,26 +11,26 @@ jobs: cd: runs-on: macos-12 permissions: - contents: write # to be able to publish a GitHub release - issues: write # to be able to comment on released issues - pull-requests: write # to be able to comment on released pull requests - id-token: write # to enable use of OIDC for npm provenance + contents: write + issues: write + pull-requests: write + id-token: write steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: - fetch-depth: 0 + fetch-depth: 1 - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ env.NODE_VERSION }} + cache: 'yarn' - name: Install dependencies run: yarn install --frozen-lockfile - name: Release env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} run: npx semantic-release diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 809a1b0..5096e55 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -12,7 +12,7 @@ jobs: runs-on: macos-13 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 1 @@ -26,18 +26,18 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 1 - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ env.NODE_VERSION }} cache: 'yarn' - name: Setup Java - uses: actions/setup-java@v3 + uses: actions/setup-node@v4 with: java-version: ${{ env.JAVA_VERSION }} distribution: 'zulu' @@ -52,12 +52,12 @@ jobs: runs-on: macos-13 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 1 - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ env.NODE_VERSION }} cache: 'yarn' @@ -79,7 +79,7 @@ jobs: needs: [lint, verify-ios, verify-android] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0