-
Notifications
You must be signed in to change notification settings - Fork 80
42 lines (39 loc) · 1.02 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Release
on:
push:
tags:
- 'v*'
- '!*-*' # skip prereleases
jobs:
github:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: script/release-notes | tee relnotes.txt
- uses: olegtarasov/get-tag@v1
id: tagname
- uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: node-build ${{ steps.tagname.outputs.tag }}
body_path: relnotes.txt
homebrew:
runs-on: ubuntu-latest
steps:
- uses: mislav/bump-homebrew-formula-action@v1.4
with:
formula-name: node-build
env:
COMMITTER_TOKEN: ${{ secrets.HOMEBREW_BUMP_PR_COMMITTER_TOKEN }}
npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
scope: '@nodenv'
registry-url: 'https://registry.npmjs.org'
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}