Skip to content

Commit 5705ed9

Browse files
committed
ci(github-actions): add release pipeline
1 parent 8f56aec commit 5705ed9

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Release pipeline
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
publish:
10+
if: "! contains(github.event.head_commit.message, '[skip ci]')"
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v1
14+
- uses: bahmutov/npm-install@v1
15+
- name: Semantic Release
16+
uses: cycjimmy/semantic-release-action@v2
17+
with:
18+
extra_plugins: |
19+
@semantic-release/[email protected]
20+
@semantic-release/[email protected]
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
23+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
24+
25+
# !TRICKY
26+
# https://github.community/t5/GitHub-Actions/Workflow-is-failing-if-no-job-can-be-ran-due-to-condition/td-p/38085
27+
always_job:
28+
name: Always run job
29+
runs-on: ubuntu-latest
30+
steps:
31+
- name: Always run
32+
run: echo "TRICKY run"

0 commit comments

Comments
 (0)