Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: npm build

on:
push:
branches:
- master
pull_request: {}

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm ci
- name: Publish to npm
run: npm publish --tag next
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
Copy link
Member

@generalmimon generalmimon May 4, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need to double check if that method of supplying the auth token is correct.

@GreyCat Yeah, it obviously can't work, because your secret is called NODE_AUTH_TOKEN, not npm_token. So it should be probably ${{ secrets.NODE_AUTH_TOKEN }}.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, thanks! Fixed, let's try it again.

if: github.ref == 'refs/heads/master'
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 15 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,26 @@
{
"name": "kaitai-struct",
"version": "0.9.0-SNAPSHOT.1",
"version": "0.9.0-SNAPSHOT.3",
"description": "Kaitai Struct: runtime library for Javascript",
"main": "index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/kaitai-io/kaitai_struct_javascript_runtime.git"
},
"keywords": ["kaitai", "binary", "parsing", "struct", "stream", "runtime", "file", "format", "structure", "forenics", "reversing", "reverse engineering"],
"keywords": [
"kaitai",
"binary",
"parsing",
"struct",
"stream",
"runtime",
"file",
"format",
"structure",
"forenics",
"reversing",
"reverse engineering"
],
"author": "Kaitai team (https://github.com/orgs/kaitai-io/people) and Ilmari Heikkinen",
"license": "Apache-2.0",
"bugs": {
Expand Down