From b0ab4d8ec19b6fab88b880b4796b9cb1afcfedaf Mon Sep 17 00:00:00 2001 From: cb-haripriyan <67890824+cb-haripriyan@users.noreply.github.com> Date: Tue, 12 Dec 2023 17:52:26 +0530 Subject: [PATCH] chore: updates release yml (#171) * chore: updates release yml * chore: fixes package manager version --- .github/workflows/build.yml | 2 ++ .github/workflows/release.yml | 8 +++++++- package.json | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bc3525f..1bb9a1e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,6 +10,8 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 0 + - name: Enable Corepack before setting up Node + run: corepack enable - name: Cache node modules id: cache-nodemodules uses: actions/cache@v2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 230cd34..58a1a91 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,10 @@ on: branches: - master - next + paths-ignore: + - 'CHANGELOG.md' + - 'package-lock.json' + - 'package.json' jobs: release: runs-on: ubuntu-latest @@ -13,6 +17,8 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 0 + - name: Enable Corepack before setting up Node + run: corepack enable - name: Initialize Git Config run: | git config user.name "${GITHUB_ACTOR}" @@ -49,7 +55,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Release package if: github.ref == 'refs/heads/master' - run: npm run release -- --ci -VV + run: npm run release -- --ci --dry-run -VV env: NPM_TOKEN: ${{ secrets.RN_SDK_NPM_WRITE_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index b0b67fd..7cfa410 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,7 @@ "engines": { "node": ">= 16.0.0" }, - "packageManager": "^yarn@1.22.15", + "packageManager": "yarn@1.22.19", "jest": { "preset": "react-native", "modulePathIgnorePatterns": [