Skip to content

Commit 6270199

Browse files
Create release.yml
1 parent 2bca73a commit 6270199

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
release:
8+
name: Release
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v1
12+
13+
# you'll need to add an `id` in order to access output variables
14+
- uses: codfish/semantic-release-action@v1
15+
id: semantic
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
19+
20+
- run: echo ${{ steps.semantic.outputs.release-version }}
21+
22+
- run: echo "$OUTPUTS"
23+
env:
24+
OUTPUTS: ${{ toJson(steps.semantic.outputs) }}
25+
26+
- uses: codfish/some-other-action@v1
27+
with:
28+
release-version: ${{ steps.semantic.outputs.release-version }}

0 commit comments

Comments
 (0)