-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 975 Bytes
/
main.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
name: Main
on:
push:
branches: [main]
jobs:
build_test_release:
name: 'On Main Push - Build, Test, Release'
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup configuration for NPM registry
uses: actions/setup-node@v3
with:
node-version: 18.12.1
registry-url: 'https://registry.npmjs.org'
scope: '@dankreiger'
- name: Use Node 18.
uses: actions/setup-node@v3
with:
node-version: 18.12.1
- name: Install deps and build (with cache)
uses: bahmutov/npm-install@v1
- name: Lint
run: npm run lint
- name: Test
run: npm run test:ci
- name: Build
run: npm run build
- name: Create release and publish scoped package
run: npm run release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}