Skip to content

Commit 8456e06

Browse files
authored
Merge pull request #498 from escattone/use-gha
add github action workflows
2 parents 608b0dc + 282b72c commit 8456e06

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.github/workflows/lint.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: lint
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/[email protected]
12+
- uses: actions/[email protected]
13+
with:
14+
node-version: '12.x'
15+
- run: npm ci
16+
- run: npm run travis

.github/workflows/npm-publish.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: npm publish
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/[email protected]
10+
11+
# Setup .npmrc file to publish to npm
12+
- uses: actions/[email protected]
13+
with:
14+
node-version: '12.x'
15+
registry-url: 'https://registry.npmjs.org'
16+
17+
- name: Install all npm packages
18+
run: npm install
19+
20+
- name: Publish data package to npm registry
21+
run: npm publish --access public --dry-run
22+
env:
23+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)