forked from nodenv/node-build
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 865 Bytes
/
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
name: Release
on:
push: { tags: 'v[0-9]+.[0-9]+.[0-9]+' }
jobs:
github:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with: { fetch-depth: 0 }
- run: npm ci
- run: npm run -s relnotes | tee relnotes.txt
- uses: jasonkarns/create-release@master
with: { body_path: relnotes.txt }
homebrew:
runs-on: ubuntu-latest
steps:
- uses: mislav/[email protected]
with:
formula-name: node-build
env:
COMMITTER_TOKEN: ${{ secrets.BOT_TOKEN }}
npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
scope: '@nodenv'
registry-url: 'https://registry.npmjs.org'
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }}