Skip to content

Commit f0086f1

Browse files
committed
Removed Travis automation, added GH Actions build & publish to npm
1 parent d9bc0b9 commit f0086f1

File tree

3 files changed

+24
-14
lines changed

3 files changed

+24
-14
lines changed

.github/workflows/build.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: npm build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request: {}
8+
9+
jobs:
10+
publish-npm:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-node@v1
15+
with:
16+
node-version: 12
17+
registry-url: https://registry.npmjs.org/
18+
- run: npm ci
19+
- name: Publish to npm
20+
run: npm publish --tag next
21+
env:
22+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
23+
if: github.ref == 'refs/heads/master'

.travis.yml

-13
This file was deleted.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "kaitai-struct",
3-
"version": "0.9.0-SNAPSHOT.1",
3+
"version": "0.9.0-SNAPSHOT.3",
44
"description": "Kaitai Struct: runtime library for Javascript",
55
"main": "index.js",
66
"repository": {

0 commit comments

Comments
 (0)