-
-
Notifications
You must be signed in to change notification settings - Fork 22
31 lines (24 loc) · 582 Bytes
/
Copy pathrelease.yml
File metadata and controls
31 lines (24 loc) · 582 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
name: publish package
on:
release:
types: [published]
jobs:
build_and_deploy:
name: build test
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- uses: actions/setup-node@v3
with:
registry-url: 'https://registry.npmjs.org'
- name: Install Dependencies
run: npm install
- name: Test
run: npm run test
- name: Build
run: npm run build
- name: Pubish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}