Skip to content

Commit

Permalink
build: update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mob-sakai committed Sep 5, 2020
1 parent 6685967 commit c420deb
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,17 @@ on:
- '!*'

jobs:
release:
prepare:
runs-on: ubuntu-latest
if: "! contains(github.event.head_commit.message, '[skip ci]') && ! contains(github.event.head_commit.message, '[ci skip]')"
steps:
- uses: actions/checkout@v1
- run: echo "${{ github.event.head_commit.message }}"

- uses: actions/setup-node@v1
with:
node-version: 12
release:
runs-on: ubuntu-latest
needs: prepare
steps:
- uses: actions/checkout@v2

- name: Install
run: npm i
Expand All @@ -29,10 +32,10 @@ jobs:
run: npm run release -- --dry-run
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
GH_TOKEN: ${{secrets.GH_TOKEN}}
GH_TOKEN: ${{github.token}}

- name: Release
run: npm run release
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
GH_TOKEN: ${{secrets.GH_TOKEN}}
GH_TOKEN: ${{github.token}}

0 comments on commit c420deb

Please sign in to comment.