From 041a172bfdbf3f73014605cf6904ead1987f9653 Mon Sep 17 00:00:00 2001 From: Khushboo <68757952+desaikd@users.noreply.github.com> Date: Thu, 20 Jul 2023 16:07:47 -0700 Subject: [PATCH] Updates release script (#761) --- .github/workflows/release.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7599eb87..ad2399c5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,6 +31,9 @@ jobs: if: startsWith(github.ref, 'refs/tags/v') runs-on: ubuntu-latest needs: build + permissions: + checks: write + contents: write steps: - name: set env run: echo "RELEASE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV @@ -59,6 +62,7 @@ jobs: with: node-version: '16.x' registry-url: 'https://registry.npmjs.org' + - run: npm ci - name: npm publish # skip npm publishing if running in a fork if: github.repository == 'amazon-ion/ion-js' @@ -69,6 +73,8 @@ jobs: if: startsWith(github.ref, 'refs/tags/v') runs-on: ubuntu-latest needs: build + permissions: + contents: write steps: - name: set env run: echo "RELEASE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV