-
Notifications
You must be signed in to change notification settings - Fork 10
44 lines (32 loc) · 824 Bytes
/
release.yml
File metadata and controls
44 lines (32 loc) · 824 Bytes
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
43
44
name: Release
on:
push:
tags:
- v*
env:
node-version: 12.x
jobs:
release:
runs-on: ubuntu-18.04
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- uses: actions/checkout@v2
- name: Use Node.js ${{ env.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ env.node-version }}
- name: Install Deps
run: yarn
- name: Build
run: yarn build
- name: Test
run: yarn test
- name: Packaging
run: yarn build:prod
- name: Setup authentication
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc
- name: Publish
run: npm publish --access public