-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (28 loc) · 838 Bytes
/
release.yml
File metadata and controls
36 lines (28 loc) · 838 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
name: Release Workflow
on:
release:
types: [created]
jobs:
build:
# Runner VMs, ubuntu, macos, windows
# Docs: https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#github-hosted-runners
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: '14.x'
registry-url: "https://registry.npmjs.org"
scope: "@gdfreitasdev"
- name: Install
run: npm ci
- name: Build
run: npm run build --if-present
- name: Test
run: npm test --if-present
- name: Publish NPM
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}