Skip to content

Commit

Permalink
reowkr
Browse files Browse the repository at this point in the history
  • Loading branch information
erral committed Oct 28, 2021
1 parent 3ca99c9 commit 4d92499
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
on:
pull_request:
branches:
- main
types: [closed]

jobs:
release:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -11,17 +18,8 @@ jobs:
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- run: npm install
- run: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
deploy:
script:
- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
- npm run release
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
- run: npm run release

on:
pull_request:
branches:
- main
steps:
- release
- deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 4d92499

Please sign in to comment.