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