-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (49 loc) · 1.19 KB
/
npm.yaml
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
45
46
47
48
49
name: Node.js Packages
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "16.x"
registry-url: "https://registry.npmjs.org"
# Defaults to the user or organization that owns the workflow file
scope: "@datayoga-io"
- name: update versions in repo
run: |
git config user.name github-actions
git config user.email github-actions@github.com
- name: install
run: |
npm ci
- name: build, test
run: |
npm version patch
npm run build
- name: push version to repo
run: |
git push
- name: publish
run: |
npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM }}
validate-install:
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v2
with:
node-version: "14.x"
- name: install
run: |
npm install -g @datayoga-io/node-g6
- name: test
run: |
node-g6 --help