Skip to content

Commit 540e873

Browse files
authored
LENS-477 add github action ci; automate release process (#53)
1 parent 5800912 commit 540e873

File tree

7 files changed

+8013
-205
lines changed

7 files changed

+8013
-205
lines changed

.github/workflows/ci.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: ci
2+
on: push
3+
jobs:
4+
ci:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v3
8+
- uses: actions/setup-node@v3
9+
with:
10+
node-version-file: '.nvmrc'
11+
- run: npm ci
12+
- run: npm run build
13+
- run: npm run test
14+
- if: startsWith(github.ref, 'refs/tags/v')
15+
run: npm publish
16+
env:
17+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.npmignore

-4
This file was deleted.

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
//registry.npmjs.org/:_authToken=${NPM_TOKEN}

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
18

.travis.yml

-20
This file was deleted.

0 commit comments

Comments
 (0)