Skip to content

Commit

Permalink
Merge pull request #133 from yvesgurcan/gh-release
Browse files Browse the repository at this point in the history
Gh release
  • Loading branch information
yvesgurcan authored Jan 24, 2020
2 parents 2968a96 + a14b07e commit 9f0aa5f
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,34 @@ on:
- master

jobs:
publish-npm:
name: Create release
if: github.event.pull_request.merged
runs-on: ubuntu-latest
steps:
- name: Set up workflow
uses: actions/checkout@v2
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- name: Publish to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
- name: Tag the library
id: autotag
uses: butlerlogic/action-autotag@stable
with:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
tag_prefx: "v"
- name: GitHub release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
automatic_release_tag: ${{ steps.autotag.outputs.version }}
prerelease: false
publish-npm:
name: Create release
if: github.event.pull_request.merged
runs-on: ubuntu-latest
steps:
- name: Set up workflow
uses: actions/checkout@v2
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- name: Publish to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
- name: Tag the library
id: autotag
uses: butlerlogic/action-autotag@stable
with:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
tag_prefx: "v"
- name: GitHub release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
automatic_release_tag: ${{ steps.autotag.outputs.version }}
prerelease: false
publish-gpr:
name: Publish to GPR
if: github.event.pull_request.merged
Expand Down

0 comments on commit 9f0aa5f

Please sign in to comment.