Skip to content

Commit

Permalink
Updates release script (#761)
Browse files Browse the repository at this point in the history
  • Loading branch information
desaikd committed Jul 20, 2023
1 parent 14b0bab commit 041a172
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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'
Expand All @@ -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
Expand Down

0 comments on commit 041a172

Please sign in to comment.