Skip to content

Commit 78d5b63

Browse files
committed
rename package, add github workflow
1 parent befead9 commit 78d5b63

File tree

3 files changed

+45
-1
lines changed

3 files changed

+45
-1
lines changed

.github/workflows/release.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Build And Release
2+
3+
on: [workflow_dispatch, push]
4+
5+
jobs:
6+
Build:
7+
strategy:
8+
matrix:
9+
os: [ubuntu-latest, windows-latest, macos-latest]
10+
runs-on: ${{matrix.os}}
11+
steps:
12+
- name: Checking out Repository
13+
uses: actions/checkout@v3
14+
with:
15+
submodules: true
16+
17+
- name: Building
18+
run: yarn install
19+
20+
- name: Uploading
21+
uses: actions/upload-artifact@v3
22+
with:
23+
name: bin-${{runner.os}}
24+
path: bin/**
25+
26+
Release:
27+
if: ${{github.event_name == 'tag'}}
28+
needs: Build
29+
runs-on: ubuntu-latest
30+
steps:
31+
- name: Checking out Repository
32+
uses: actions/checkout@v3
33+
with:
34+
submodules: true
35+
36+
- name: Download Artifacts
37+
uses: actions/download-artifact@v3
38+
39+
# this will only publish if the version has been updated
40+
- name: NPM Publish
41+
uses: JS-DevTools/[email protected]
42+
with:
43+
token: ${{secrets.NPM_TOKEN}}

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build/*

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "node-dump-syms",
2+
"name": "@axosoft/dump-syms",
33
"version": "0.0.1",
44
"main": "index.js",
55
"license": "MIT",

0 commit comments

Comments
 (0)