Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit bdf96f0

Browse files
committed
Updated workflow for tagged releases to publish a new package version on success
1 parent 31f8cf8 commit bdf96f0

File tree

2 files changed

+23
-10
lines changed

2 files changed

+23
-10
lines changed

.github/workflows/tagged_release.yaml

+20-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
with:
2323
node-version: ${{matrix.node}}
2424
- name: Install
25-
run: npm install --unsafe-perm
25+
run: npm ci --unsafe-perm
2626
- name: Publish prebuild
2727
shell: bash
2828
run: npm run prebuild -- -t ${{matrix.target}} -r ${{matrix.runtime}} --include-regex "\.(node|a|so|dylib|lib|dll).*$" -u ${{ secrets.GITHUB_TOKEN }}
@@ -44,7 +44,24 @@ jobs:
4444
with:
4545
node-version: ${{matrix.node}}
4646
- name: Install
47-
run: npm install --unsafe-perm
47+
run: npm ci --unsafe-perm
4848
- name: Publish prebuild
4949
shell: bash
50-
run: npm run prebuild -- -t ${{matrix.target}} -r ${{matrix.runtime}} --include-regex "\.(node|a|so|dylib|lib|dll).*$" -u ${{ secrets.GITHUB_TOKEN }}
50+
run: npm run prebuild -- -t ${{matrix.target}} -r ${{matrix.runtime}} --include-regex "\.(node|a|so|dylib|lib|dll).*$" -u ${{ secrets.GITHUB_TOKEN }}
51+
52+
deploy:
53+
needs:
54+
- prebuild-node
55+
- prebuild-electron
56+
runs-on: ubuntu-latest
57+
steps:
58+
- name: Set up Git repository
59+
uses: actions/checkout@v2
60+
- name: Set up node
61+
uses: actions/setup-node@v2
62+
with:
63+
node-version: 14
64+
- name: Publish tagged release
65+
uses: JS-DevTools/npm-publish@v1
66+
with:
67+
token: ${{ secrets.NPM_TOKEN }}

.npmignore

+3-7
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,13 @@ vs
33
.vscode
44
build
55
bin
6-
node_modules
7-
crash.log
6+
*.log
87
data
98
test
109
examples
11-
.travis.yml
1210
doc
13-
coverage
14-
coverage-report
15-
tmpdata
1611
ci
1712
.dockerignore
1813
dist
19-
native-node-utils
14+
prebuilds
15+
.github

0 commit comments

Comments
 (0)