Skip to content

Commit b424b6d

Browse files
committed
Enable auto-publish in GHA
1 parent eee97e8 commit b424b6d

File tree

2 files changed

+17
-26
lines changed

2 files changed

+17
-26
lines changed

.github/workflows/publish-to-npm.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
on:
2+
push:
3+
branches: master
4+
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: actions/setup-node@v3
11+
with:
12+
node-version-file: '.nvmrc'
13+
- run: npm ci
14+
- run: npm test
15+
- uses: JS-DevTools/npm-publish@v3
16+
with:
17+
token: ${{ secrets.NPM_TOKEN }}

.travis.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)