Skip to content

Commit

Permalink
chore: update release script
Browse files Browse the repository at this point in the history
  • Loading branch information
coston committed Jan 19, 2020
1 parent be7a706 commit e2477f3
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/release.yml
@@ -1,17 +1,22 @@
name: Release
on:
push:
branches:
- master
on:​
pull_request:​
types: closed
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v1​
if: github.event.pull_request.merged​
with:​
ref: refs/heads/master
- name: Release
run: |
git config user.name $GITHUB_ACTOR​
git config user.email gh-actions-${GITHUB_ACTOR}@github.com
yarn
yarn preversion
git remote add gh-origin https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git​
echo -e "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > .npmrc
yarn release
echo -e "//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}" > .npmrc
Expand Down

0 comments on commit e2477f3

Please sign in to comment.